And i would do a IsNumeric(theValue) first to make sure you wont throw an
error.

Dan


-----Original Message-----
From: David L. Penton [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 17:03
To: ActiveServerPages
Subject: RE: Turning a string to an number


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.unsub%%

_____________________________________________________________________
This e-mail has been scanned for viruses by the WorldCom Internet Managed
Scanning Service - powered by MessageLabs. For further information visit
http://www.worldcom.com



_____________________________________________________________________
This e-mail has been scanned for viruses by the WorldCom Internet Managed Scanning 
Service - powered by MessageLabs. For further information visit http://www.worldcom.com

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

Reply via email to