formatcurrency (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


wizard_oz -> formatcurrency (2/27/2006 5:42:45)

Hi, I have some numbers from my DataBase and I would like to show them as a currency, I am using the command
Response.Write "<td align=right>" & formatcurrency(rs("price")) & "</td>"
But it doen't work, If I'm deleting the formatcurrency, it is workning.
Does anyone habe any idea about it?
Thanks,Elen




rdouglass -> RE: formatcurrency (2/27/2006 11:23:08)

quote:

formatcurrency(rs("price"))


Try this:

formatcurrency(rs("price"),2)

You need that parameter in there to tell formatcurrency how many decimal places to use. It is a required item.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.03125