I currently have a string that consists of one number "1". I would like to convert it to a long, or even a byte. How can I do this? I couldnt find any conversions in the PB manual. Except for the String (STR), but that was it. This is needed to read numbers from a combo box by NOT using the index, but by reading the text of an element.
I think the above would be quite usefull.
CLng, CInt, CByte, CWord ... conversions would be nice...
number.l = Val(string$) doesn't work?
or am I missing the point here?
or am I missing the point here?
AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX
Hi Shannara:
Is this any help?
Is this any help?
Code: Select all
s$="1"
A.L=PeekB(@s$)-48
Debug "Long :"+Str(A)
B.b=PeekB(@s$)-48
Debug "Byte :" +Str(B)