Jump to content
Sign in to follow this  
xroot

Currency Format

Recommended Posts

xroot

:D I was searching on the site for a way to format numbers to Currency, found some solutions but not the one I want.

I found an API "GetCurrencyFormat" @ Microsoft MSDN.

I used the DllCall in Autoit3 to see if I could get it to work.

Check it out, seems to work fine. :P

Thanks

$Amt="47683455.69"

$Hold=""

$dll=DllOpen("kernel32.dll")

$GCF=DllCall($dll,"int","GetCurrencyFormat","int",0,"int",0,"str",$Amt,"int",0,"str",$Hold,"int",20)

msgbox(0,"Dll Test",$GCF[3] & " " & $GCF[5])

DllClose($dll)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×