Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get first name
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01429319
Message ID:
01429324
Views:
128
This message has been marked as the solution to the initial question of the thread.
Thre're multiple ways to do that
lcName = "Moises Francisco Pereira"

? GETWORDNUM(lcName,1)
* or
? STREXTRACT(lcName,"", SPACE(1))
* or
? ALINES(laList, lcName,1+4,SPACE(1))
? laList[1]
>
>The function you showed seems complex because has title as mr. mrs, dr, etc
>
>I just want something more simple
>
>I am considering using length function
>
>Do you know how to locate the first space after the first name, so I can use lengt() to delimit the first name ?
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform