|
-
Aug 7th, 2007, 08:15 AM
#1
Thread Starter
Member
[RESOLVED] Get number out of a string
Hi there,
as the title says i try to get a number out of a string.
Like in:
"3.1 Ram test"
i try to get out the 3.1
But the length of the number is not always the same. it could be like
"3 Ram Test"
"3.1 Ram Test"
"3.11 Ram Test"
etc.
I thought there was something like val() but that doesnt work in vb.net.
And the last thing is - there could b another number in that string, like
"3.1 Ram Test 1"
but i just want to have the 3.1
Any suggestions??
Thanx.
Fred
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|