xroot Posted January 14, 2008 Posted January 14, 2008 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. 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)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now