picking out numbers in a dim number as double

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

  • 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.

Howdy, Stranger!

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

Categories

In this Discussion