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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting from one data-type to another

Status
Not open for further replies.

Annelies

Programmer
Joined
Nov 25, 2001
Messages
72
Hi,

I'm hoping someone can help me with (hopefully) something simple.

I am wanting to convert a "string" value into a numeric value in Visual Interdev, using VB Script. In VB you can use the Val() function, but this does not seem to work in VB Script...?

Any hints anyone?

Thanks =)

Annelies
 
dim myString, myInt
myInt = CInt(MyString)

hth
corey
 
You really should be using CInt() etc. in VB too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top