|
-
Jun 5th, 2002, 01:31 AM
#1
Thread Starter
New Member
find and replace
can someone give me the code for a find and replace functionality in a string.......
it wud b really helpful...
thanx a zillion
-
Jun 5th, 2002, 02:01 AM
#2
just use the replace function :
Code:
Private Sub Form_Load()
Dim strTemp As String
strTemp = "the cat sat on the mat"
MsgBox Replace(strTemp, "the", "a")
End Sub
-
Jun 5th, 2002, 02:01 AM
#3
-= B u g S l a y e r =-
Replace
VB Code:
Private Sub Command1_Click()
Dim s As String
s = "teep dimdidumdiada lakdsjfpc teep and this is a testeep"
s = Replace(s, "teep", "peet")
MsgBox s
End Sub
-
Jun 5th, 2002, 02:05 AM
#4
PowerPoster
Re: Replace
Originally posted by peet
"teep dimdidumdiada lakdsjfpc teep and this is a testeep"
You're starting to sound like crptblade now.
-
Jun 5th, 2002, 02:06 AM
#5
-= B u g S l a y e r =-
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
|