Try this code (I haven't tested it so there might be a small bug):
StringVar FirstName;
StringVar LastName;
FirstName := Left({table.field}, InStr({table.field}," ")-1);
LastName := Mid({table.field}, InStr({table.field}," ")+1);
I cover string functions in Chapter 6 of my new book.
Edited by BrianBischof - 20 Aug 2007 at 11:09pm