Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Search for character and replace it
Message
De
07/04/2001 09:38:56
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00492710
Message ID:
00493186
Vues:
14
>Hi,
>
>Can anyone help me doing the following:
>
>I want to scan a table (.dbf) and search for characters that are not letters or numbers (or searct for a spesific character). Maybe even replace/remove these characters.
>
>Are there any code here to do that, or does anyone have an ide for a program to do so?
>
>Any help would be appreciated.
>
>
>Kenneth Ingebrigtsen

You can use chrtran() by providing char mapping strings.ie:
lcSearchSet='oel'
lcReplacement = ''
? chrtran('Hello there everybody',lcSearchSet,lcReplacement)  
* "H thr vrybdy"

lcSearchSet='oel'
lcReplacement = '123'
? chrtran('Hello there everybody',lcSearchSet,lcReplacement)  
* "H2331 th2r2 2v2ryb1dy"
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform