Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create a String only with numeric values
Message
From
14/05/2004 03:24:16
 
 
To
13/05/2004 21:54:18
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00903931
Message ID:
00903975
Views:
23
Hi Hilmar,

Not a good solution, what if the string is for instance "12,34e7abcde"? (Answer: 123400000,00)

>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform