Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String to Integer Conv VFP50
Message
 
To
08/04/1998 12:38:28
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00090491
Message ID:
00090508
Views:
21
>Hello once again, me and my Vfp50 illiterate companions have once again found a problem our limited experience can't solve. How do you convert a String containing an integer to and integer variable. I apologize for the simplicity of the problem.

It depends what you mean by 'integer' - VFP does not have an equivalent to C integer type. Do you mean 'numeric variable' - if so, see other replys. If you mean that you have a C style integer, use ASC(variable) - this will give the ASCII value of the first character in a string variable returned as a numeric variable. Example: string='abc', num=ASC(string), num then contains 49.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Reply
Map
View

Click here to load this message in the networking platform