Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Character to numeric
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00410412
Message ID:
00410420
Vues:
14
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform