-
November 14th, 2012, 10:04 AM
#1
Replace doesn't seem to work?
I have some code a bit like this:
Dim string1 as string
string1 = "some text"
Dim tempstr as string
tempstr = Replace(string1,"xt","ab")
string1 = tempstr
Now I believe string1 should be "some teab", but in fact it is unchanged.
What can be wrong?
I must add, that I haven't touched vb for more than 10 years, so I'm feeling my way into the syntax 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
|