Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting character value to 2 decimal places
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01382758
Message ID:
01382761
Vues:
41
>Try
>
>lcTest = "3900"
>? ROUND(VAL(lcTest)/100,2)
>
>>If I have a character string that equals "3900" how can I convert that to decimal type 39.00. Everytime I do VAL() function I'm getting 3900 and I need it to have 2 decimal places at the end, but nothing is working. thanks
>>
>>Nick


Thanks Vladimir, this thing drove me nuts all day. Thanks again.

Nick
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform