hi,
This is probably an easy one for you.. How can I convert the following string:
k0
To a byte and ignore the "k"? so that all I get is a byte of 0?
Thanks,
dan
Printable View
hi,
This is probably an easy one for you.. How can I convert the following string:
k0
To a byte and ignore the "k"? so that all I get is a byte of 0?
Thanks,
dan
Hi,
Here is the code for doing that
Dim bVar As Byte
sVal = "K0"
bVar = CByte(Right(sVal, 1))
This code holds good if there is only 1 digit beside K,if there are 2 digits then change 1 to 2 if 3 then change to 3 etc...in the above code.
Hope this helps you
Good Luck