Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replacing part of a string with another
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00353930
Message ID:
00353966
Views:
17
>I am looking for a VB function that evaluates a string and replaces all occurances of a specified string with another specified string.
>
>In VFP it is lcNewString =
>STRTRAN(cSearched,cSearchFor [, cReplacement] [, nStartOccurrence] [, nNumberOfOccurrences])

Look at using the native RegExp object; it can do pattern search and replace operations pretty easily.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform