Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I parse this string
Message
De
31/08/2000 13:27:24
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00411375
Message ID:
00411376
Vues:
13
lcname='Morales, Lisa Marie Garcia'
*-- Look for the first space starting at the end (right) of the string
?substr(lcname,rat(' ',lcname)+1)

>I am trying to parse a string that contains lastname, firstname middlename as follows:
>
>'Morales, Lisa Marie Garcia'
>
>I am trying to retrieve "Garcia" (lastname) from the whole string shown above. Does anyone know a good way to do this?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform