Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Currency
Message
De
13/01/2009 12:38:00
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01373267
Message ID:
01373286
Vues:
25
>>If I set my currency symbol to £ and want to create a currency variable I still have to use the $ sign as lval = $200. And using NTOM gives me a dollar amount.
>>
>>Thats a nuisance.
>
>The '$' (dollar sign) in the '$200' represents a currency literal not a dollar value.
>
>The NTOM() function converts a numeric value to a currency value. Nothing more, nothing less. There's no currency type attached to it.

Thanks Sergey Yes I see that. I was just about to process some strings some of which contain currency amounts and was thinking of using VARTYPE to check which ones where valid currency amounts. I'll have to change my £s to $s first.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform