Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Character to numeric
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00410412
Message ID:
00410420
Views:
15
>Is there a way to convert a character field to a numeric field? (I need it to be numeric so there is a decimal)
>
>Thanks,
>Ryan

Since everyone alrady said VAL(), I'll say Evaluate() just to be different.

lcnum = "19.675432"
? vartype(lcnum) && returns C
lnnum = evaluate(lcnum)
? vartype(lnnum) && returns N
lnnum now equals 19.675432
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform