Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Eliminate non numerics from string
Message
From
23/05/2003 04:30:57
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
23/05/2003 04:10:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00792082
Message ID:
00792093
Views:
17
>>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]
Previous
Reply
Map
View

Click here to load this message in the networking platform