Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Locating and replacing a charcter in a field
Message
De
28/12/1999 14:45:35
 
 
À
28/12/1999 14:37:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00309380
Message ID:
00309393
Vues:
28
>Hello All,
>
> I have solved my many DB connectivity problems and was wondering what function I would use to locate a character in a field and replace it with something else ie make smith,charles smith charles or something like that. TIA
>
>
>It is easier to find men who will volunteer to die, than to find those who are willing to endure pain with patience
>

STRTRAN() will look for a specific character expression in a string and substitute another string for it. For example:

? STRTRAN('This is a test string',' is',' was') && This was a test string

CHRTRAN() will repace on character in a compare string with the equivalent character in a substitution string:

? CHRTRAN('123456789','1357','ABCD') && A2B4C6D89


>-Julius Caesar
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform