Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with GetCurrencyFormat
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01102074
Message ID:
01102080
Views:
20
This message has been marked as the solution to the initial question of the thread.
>Could someone post an example of how to declare and use the GetCurrencyFormat API. I looked on news2news and didn't find any help with this particular API. I think the thing that throws me most is how to handle the structure that it expects to be passed.
>
>Thanks for your help!
Declare INTEGER GetCurrencyFormat IN WIN32API INTEGER Locale, INTEGER dwFlags,;
                                              STRING lpValue, STRING lpFormat,;
                                              STRING @lpCurrencyStr,;
                                              INTEGER cchCurrency
    Buffer = REPLICATE(CHR(0),255)
    GetCurrencyFormat(0,0,[5.32],0,@buffer,255)
    Buffer = CHRTRAN(Buffer, CHR(0),[])
    MESSAGEBOX(Buffer)
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