Ok, I don't know if I fully understand your question but I think you just want to find the first digit of a number(from the left) and output it. For example, if you have 123, you want to output 1.
Ok, I will write this in Python because I have not used visual basic at all, so I hope it helps. You basically just repeatedly divide the number with 10 as long as the number is bigger than 10. When you get out of the loop what will have remained is the first digit. In Python it would be something like that:

n = 123

while(n > 10):

n = n // 10 # // just means integer division

first_digit = n

I assume that something similar could be done in visual basic.
I want to note an imporant thing though. This method works only for positive integers, so it will not work, say, for something like 123. However, you can check if you have a negative number and if yes, multiply with 1 to work with the opposite number. Now, if you have a floating point number, in Python specifically, you can easily deal with that by doing that: If you find that n is float, then you do: n = int(n)
and you just get the integer part. Because most languages have functions for flooring, cealing etc. I assume that visual basic has also one. I hope that I helped in some way and that I gave you some food for thought.