|
-
June 9th, 2000, 06:42 AM
#1
howto overwrite a char in a string?!
hi all,
i came across this very basic need, i want to replace a character in a string with another character.
Dim s as string
s = "this iz a test"
s(7) = "s" 'this would be nice, but gives an error
i cant find anything -not even a hint- about some existing function or operator which gives me this functionality. I tried everything i could think of, nothing worked.
I'm kinda reluctant to start writing a new function which takes apart the string, removes the unwanted character, puts the new character in its place, and glues everything back together again.
Am i just being blind, not able to find anything existing for this problem, or am i just thinking too difficult so that i overlook a simple solution right in front of me?
Anybody?
thanx
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
|