|
-
Feb 13th, 2009, 06:11 AM
#1
Thread Starter
Banned
Re: Find text between text
What I'm going to be use it for is this:
I get the source code of a web page, in the webpage the text: Your production: 100 Lumber. is used. Now I want to get the production out of the webpage. the number can be 10,100,1000 etc. So I can't use get the 2/3/4 character in the between production and lumber.
Please tell me how to do this.
vb6hacker
-
Feb 13th, 2009, 12:15 PM
#2
Re: Find text between text
 Originally Posted by vb6hacker
What I'm going to be use it for is this:
I get the source code of a web page, in the webpage the text: Your production: 100 Lumber. is used. Now I want to get the production out of the webpage. the number can be 10,100,1000 etc. So I can't use get the 2/3/4 character in the between production and lumber.
Please tell me how to do this.
vb6hacker
The blank within the text appears to be a delimiter that you can look for to isolate the number you are searching for:
Code:
Dim MyText As String, MySearch() As String
MyText = "Your production: 100 Lumber"
MySearch = Split(MyText, Chr$(32))
MsgBox MySearch(2)
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
|