Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with removing something from string
Message
From
27/01/2001 20:20:49
 
 
To
27/01/2001 16:04:28
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00469416
Message ID:
00469457
Views:
28
>>
>>I'd like the analogue of strtran but with case insentitive. Anyway, I've just checked the form code and found, that I always use the same convention: SiteMstr, PropMstr, TranMstr, so this is not a problem.
>
>With strtran() this would work :
>lcString = strtran(upper(lcString), 'SITEMSTR', 'SiteMstr')

VBScript.RegExp is better at these games:
oRegExp = CREATEOBJ('VBSCRIPT.Regexp')
oRegExp.IgnoreCase = .t.
oRegExp.Global = .t.
oRegExp.Pattern = 'sitemstr'
? oRegExp.Replace('SiteMStr SITEMSTR SiTeMStr,Sitemstr   SITEMSTR','SiteMstr')
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