![]() |
![]() |
#1 (permalink) |
Good enough to f*ck your mother...
Location: Constant State Of Denial
|
[VBScript] Parsing a string for number
Ok its late here and im having a retard moment.
In Javascript there is the parseInt function which returns a number from a string. eg: aString = "hi im 18 years old" using parseInt would give me 18 Is there a similar thing in VBScript of taking a integer/double etc from a string? Thanks to anyone who took time to view this...
__________________
«Ex Pr0n Special Forces Sgt Looking for Mercenary Work in Liberation Army» «Can provide references» |
![]() |
![]() |
#4 (permalink) |
Good enough to f*ck your mother...
Location: Constant State Of Denial
|
Nice one!
I knew i had done it somehow before.... and using the split then isNumeric method was the way i did it!@ I think this could very well be a definitive sign that partying does kill the brain cells. Thanks wondash.
__________________
«Ex Pr0n Special Forces Sgt Looking for Mercenary Work in Liberation Army» «Can provide references» |
![]() |
![]() |
#5 (permalink) | |
Everything's better with bacon
Location: In your local grocer's freezer.
|
Quote:
__________________
It was like that when I got here....I swear. |
|
![]() |
Tags |
number, parsing, string, vbscript |
|
|