If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Converting Strings to values

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-24-03, 08:03
McFrisch McFrisch is offline
Registered User
 
Join Date: Sep 2003
Location: Ohio
Posts: 7
Question Converting Strings to values

I assume this to be a simple question, but I can't seem to find the answer through searching Google. Nevertheless, how do I convert a string value such as "12345" to an integer such as 12345? I want to do a function similar to Val(string). Thanks for your help!
Reply With Quote
  #2 (permalink)  
Old 09-25-03, 02:56
Cos Cos is offline
Registered User
 
Join Date: Sep 2003
Posts: 6
Cint(string) or Cdbl(string) and so on... depends in what you want to convert your string.

IE
strString = "12"
intString = Cint(strString)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On