Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find position 1st occurrence of nonnumeric value in a st
Message
 
To
09/01/2008 15:12:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01280661
Message ID:
01280664
Views:
17
This message has been marked as a message which has helped to the initial question of the thread.
>lcmyString = "123456789 Boldorn"
>
>I want to return position 11 because it is the first non numeric position (B). just can't think of it today...

I think it should return the space position (10), unless you consider a space numeric <g>

What about:
lcmyString = "123456789 Boldorn"


? At(Left(Chrtran(lcMyString, '0123456789', ''), 1), lcMyString)
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Reply
Map
View

Click here to load this message in the networking platform