Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find number within string
Message
From
07/07/1999 09:21:04
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
07/07/1999 09:14:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00237774
Message ID:
00238221
Views:
14
Hidy Nancy,
Read my first, last or both reply ? :) I second on "...more work...." :)
>Oh, posh! < bg >
>You all seem to be insisting on a whole lot more work than is necessary.
>If you run a character string thru VAL() and end up with a non-zero number, you have a number without any distracting inner characters.
>
x='2.5ab3'
>y=val(x) ?y && 2.50
>
>So if you have a string with a number that could be imbedded, you just have to strip off leading chars to get to it.
>
>I'd say Craig's suggestion would be needed if you want to find more than one imbedded number.
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform