Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ VBscript
➜ Substring help
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Sleeve
(31 posts) Bio
|
| Date
| Sat 16 Nov 2002 07:36 AM (UTC) |
| Message
| I need to be able to remove a string that is in another string and I am just not familiar enough with VBScript yet to know how to do this. I can get the index of the string contained with InStr, but I don't know how to remove the string after. For example:
If I have the string "test:example:str", and I want to remove "example" from it, so that the result is "test::str" how would I do that? | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Sat 16 Nov 2002 08:08 AM (UTC) |
| Message
| | Look up the function world.replace - that will replace one string with another. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
12,304 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top