Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create a String only with numeric values
Message
From
13/05/2004 21:54:18
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
13/05/2004 21:17:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00903931
Message ID:
00903939
Views:
19
If your number is at the beginning of the string, you can use val(). You may want to use transform() first, to replace comma with point.

>Hi all
>
>I need to retrive from a string only the numeric characters, comma, and point
>like this,
>
>a="12,30asdfsdfs" i need a=12,30
>a="12.25rtrtrt11" i need a=12.25
>a="23,30        " i need a=24,30
>
>
>João Batista
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform