|
-
Sep 6th, 2000, 08:39 AM
#1
Does the Format() function work in ASP?
I've got:
Code:
<%=Format(dTotal, "0.00") %>
dTotal is a variant but will contain money (double) values.
So, dTotal might contain 2.5 and I'd like the Format() function to return "2.50" or it might contain 2351.101 and I'd want the Format() function to return "2351.10" and I'd tag a "£" sign on the front.
For some reason, everytime I try to use it I just get
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'Format'
/stu/placeorder.asp, line 241
-
Sep 6th, 2000, 09:07 AM
#2
Fanatic Member
Hi matthewralston
use the FormatCurrency function to do what you ask
Code:
FormatCurrency(expression,[numofdiggitsafterdecimal],[includeleadingdiggit],[useparensfornegnums],[groupdigits])
Hope it helps
Ian
Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!
-
Sep 6th, 2000, 09:30 AM
#3
Ta.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|