Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making value to be of currency type
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01636253
Message ID:
01636256
Views:
57
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>Suppose I pass a value this way
>
>'555.55' (as part of the longer string) and pass its type as 'Y'.
>
>I need to make that string value to be returned as currency value in this case and be correctly passed as currency to other methods (so vartype will detect it as currency).
>
>I did a quick test in the command window:
>
>
>val = $555.55
>=MESSAGEBOX(VARTYPE(val))
>
>So, it worked, but I want it to be universal. Also, it should not depend on the default language/currency format settings.
>
>So, may be I should try just casting the value as Y to pass back?
>
>Thanks in advance.

It works for me, and my default language is Bulgarian and currency is лв. :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform