picking out numbers in a dim number as double - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

picking out numbers in a dim number as double

waoowaoo Posts: 1Member
i want to beable to choose just the first number in a number and store it in another dim location.

example

dim num as double
num = 4524

what i want to display would be just the 4 or just the 5 or just the 2 ect.

can anyone help?

Comments

  • Siavash1989Siavash1989 Posts: 105Member
    use the mid function:
    mid (string, start, length) use like this:
    mid(1234,2,1)
    this returns "2"
    "Within these countries, the man who was loyal, I rewarded well, who was evil, him I punished well!"

Sign In or Register to comment.