Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with removing something from string
Message
De
27/01/2001 20:20:49
 
 
À
27/01/2001 16:04:28
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00469416
Message ID:
00469457
Vues:
26
>>
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform