|
-
Jan 24th, 2006, 01:33 PM
#1
Thread Starter
New Member
splitting line
thanks
Last edited by amxJ; Jan 26th, 2006 at 08:13 PM.
-
Jan 24th, 2006, 01:39 PM
#2
Re: finding text
VB Code:
Dim strString As String
strString = "name=SOMETHINGmessage=SOMETHING"
MsgBox Split(Split(strString, "=")(1), "message")(0)
MsgBox Mid(strString, InStrRev(strString, "=") + 1, Len(strString) - InStrRev(strString, "=") + 1)
-
Jan 24th, 2006, 01:39 PM
#3
Re: finding text
Welcome to the forums. 
You will need to be a bit more specific.
Where is the line? Are you talking about text in a textbox? Text in a file?
When we have what we are looking for, what are we searching? A database field? A textbox? A text file? What?
-
Jan 24th, 2006, 01:51 PM
#4
Re: finding text
try this:
VB Code:
Dim myString$
Private Sub Command1_Click()
myString = "name=SOMETHINGmessage=SOMETHINGELSE"
MsgBox "name = " & Split(Split(myString, "=")(1), "message")(0)
MsgBox "message = " & Mid$(myString, InStrRev(myString, "=") + 1)
End Sub
EDIT: Not again
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
|