Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I parse this string
Message
From
31/08/2000 13:27:24
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00411375
Message ID:
00411376
Views:
14
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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform