Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert Text to Integer

Status
Not open for further replies.
Oct 18, 2001
16
US
How do I convert a string to an integer?
 
IntegerValue = Val(StringValue)
or
IntegerValue = CInt(StringValue)
or
IntegerValue = CLong(StringValue) for long
or
IntegerValue = Int(StringValue)
Craig, mailto:sander@cogeco.ca
"Procrastination is the art of keeping up with yesterday."
I hope my post was helpful!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top