Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing characters from a value in a field
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00833803
Message ID:
00833804
Vues:
27
Try
STRTRAN(STRTRAN(myfield, "-G", ""), "-B", "")
* OR 
LEFT(myfield, RAT("-", myfield)-1 )
>I have a field called name with a list of users. On the end of each name is either B or G: This denotes good or bad. What I would like to do is to remove the G and B from each record: Typical data looks like:
>
>Name
>
>Tony-G
>Paul-G
>Veronica-B
>
>
>I basically want to remove the -B or -G from the end of the name.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform