CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Problem with FormatNumber()

Print topic Send  topic

Author Message
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!

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.