The VB function to convert to an Integer is CInt(string).  Will obviously
only work if the string can be converted to an int.  

However - If I remeber correctly (and it's been a while!) I thought that in
ASP you can't delare datatypes for variables.  

i.e in VB you do: Private myvar as int
in ASP you just do: Private myvar

So I'm not even sure the CInt function will work or indeed if it's supported
in ASP.

------------------------------------------------------------------ 
Andrew Ewings
Project Manager
Thoughtbubble Ltd 
http://www.thoughtbubble.net 
------------------------------------------------------------------ 
United Kingdom 
http://www.thoughtbubble.co.uk/ 
Tel: +44 (0) 20 7387 8890 
------------------------------------------------------------------ 
New Zealand 
http://www.thoughtbubble.co.nz/ 
Tel: +64 (0) 9 488 9131
------------------------------------------------------------------ 
The information in this email and in any attachments is confidential and
intended solely for the attention and use of the named addressee(s). Any
views or opinions presented are solely those of the author and do not
necessarily represent those of Thoughtbubble. This information may be
subject to legal, professional or other privilege and further distribution
of it is strictly prohibited without our authority. If you are not the
intended recipient, you are not authorised to disclose, copy, distribute, or
retain this message. Please notify us on +44 (0)207 387 8890. 



-----Original Message-----
From: Bernd VanSkiver [mailto:[EMAIL PROTECTED]]
Sent: 08 May 2001 16:23
To: CF-Talk
Subject: OT: ASP NumberFormat


Sorry about bringing ASP in to the list but am having
troubles finding the solution and was hoping someone
here might know the answer.  I am needing a way to
format a number in ASP similar to the CF function
NumberFormat()  Is there a function or something in
ASP for this?  I'm not sure if ASP even has built in
support for this.  I am programming the ASP in
VBScript.


=====
Bernd VanSkiver
[EMAIL PROTECTED]
ColdFusion Developer
ICQ UIN: 916324
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to