|
-
Mar 15th, 2006, 08:48 AM
#10
Re: [UNSOLVABLE] Search
Line Input #FileNum, sLine
This tells VB to put the whole line from the file into a string variable called sLine
lPos = InStr(sLine, sFind)
This returns the character position of sFind in sLine. It returns zero if it's not present. We know where the text we want is in relation to lPos, so once we've got it we can extract the text using the Mid Function.
Don't forget to mark this thread resolved if your question has been answered
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
|