Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Eliminate non numerics from string
Message
De
23/05/2003 04:10:11
 
 
À
23/05/2003 03:42:58
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00792082
Message ID:
00792089
Vues:
18
This message has been marked as the solution to the initial question of the thread.
>Hi,
>
>The given string is a block of numerics with leading and or trailing non numerics.
>
>How to eleminate all non numeric signs from the string in most simple form, best in one line.
>
>TIA
>

Agnes
cStr = "ABC123XYZ456"
? ChrTran( cStr, ChrTran( cStr, "0123456789", "" ), "" )  && return only numerics from cStr
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform