Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get first name
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01429319
Message ID:
01429324
Vues:
129
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform