Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to convert from a character to an int?
Message
 
 
To
06/03/2003 08:46:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00762098
Message ID:
00762106
Views:
16
>Hi all,
>
>Was wondering if there is a method for converting from a character to an int. I've tried to convert from a character to a binary and then from a binary to an int, but it just gives me the integer value of the binary.
>
>I know there is a method from converting from an int to a char, but if you could tell me a way or method which converts from a char to an int, it would be a great help.
>
>Sorry if this question is a tad mediocre, but I have only recently started using Foxpro, and don't fully know all methods!
>
>Thanks in advance,
Mick,
lcStr = "145646"
lnInt = INT(VAL(lcStr))
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform