Enrico
cName :- "Amy Halady"
What I expect nAt := at( " ", cName ) scans forward from left to right so starting with "Amy " so space is the 4th character
nRat := rat( " ", cName ) scans backwards from right to left starting with " Hadley" so the space is the 6th character
nLen := len( cName ) = 10
What am I missing ... ?? What I am trying to do is split the name above into First Name and Last name .. using the space(s) as the delimiter between the first name and the last name but sometimes the space may not be always be just one space, it may be two spaces like "Amy Hadley" so now I need to know counting backwards where the end of the space may be .. So in order to get the correct results I need to know where the space starts and where the space ends, hence the use of the At() and Rat() function ...
Is there a better way ... of knowing where the space starts and where the space ends in a string ??
Thanks
Rick