If it won't be bigger than 32767 then CInt() is ok...

CLng() allows for a max of 2 ^ 31 - 1

CCur() allows for larger...

Check the VBScript docs for more info...

David L. Penton, Microsoft MVP
JCPenney Application Specialist / Lead
"Mathematics is music for the mind, and Music is Mathematics for the
Soul. - J.S. Bach"
[EMAIL PROTECTED]

Do you have the VBScript Docs or SQL BOL installed?  If not, why not?
VBScript Docs: http://www.davidpenton.com/vbscript
SQL BOL: http://www.davidpenton.com/sqlbol


-----Original Message-----
From: Joe Sabado [mailto:[EMAIL PROTECTED]]

cint(string)
> 
> From: Andy Hayman <[EMAIL PROTECTED]>
> Date: 2002/08/09 Fri AM 09:05:05 PDT
> To: "ActiveServerPages" <[EMAIL PROTECTED]>
> Subject: Turning a string to an number
> 
> I did know but I cant find it, how do you turn a string into a number
> 
> Basicly I have a number in a drop down box which is being treated as a 
> Number but I need to put it in a numberic field!!!
> 
> 
> ---
> Andy Hayman
> Kensington Computers
> Internet & Computers Systems Consultant
> Web           <http://www.ken.co.uk>
> Email         <mailto:[EMAIL PROTECTED]>
> Telephone     020 7835 1282
> Fax:                  020 7373 6900


---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to