Matt
|
Posted: 10/27/2003, 7:46 AM |
|
I'm trying to format numbers on an ASP site built with CodeCharge. I used the FormatNumber() function in the Before Show Event of the form. I keep getting the same error message: Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'FormatNumber'.
This is how I entered it: fldSize = FormatNumber(fldSize, 2)
Does anybody know what I might be doing wrong? Thanks
|
|
|
Ken Hardwick -CC/ASP
|
Posted: 10/27/2003, 4:11 PM |
|
Try converting your variable to a number..like
Even though a variable looks like a number, ASP doesn't aways know
it is a variable. Try cLng or Cint like:
fldSize = FormatNumber(clng(fldSize), 2)
|
|
|
Matt
|
Posted: 10/28/2003, 9:28 AM |
|
Thanks for the tip Ken it works!
|
|
|
|