Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String to Integer Conv VFP50
Message
From
08/04/1998 12:42:21
 
 
To
08/04/1998 12:38:28
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00090491
Message ID:
00090496
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.

Assume:

cVar = Character (string) variable "100.00"

The code is:

nVar = INT(VAL(cVar))

nVar = 100

There is no specific integer type variable in VFP
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform