Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Eliminate non numerics from string
Message
De
23/05/2003 04:30:57
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
23/05/2003 04:10:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00792082
Message ID:
00792093
Vues:
16
>>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
>
Hi Jos,

that was what I was looking for

Thank you
Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform