I still not sure what you are doing. Why do you parse name if you want to search on full name?
>thank you for reply,
>i try to find the filed name4 as (jon kamel) not as (jon) only
>
>>What arer you trying to do and what seems to be a problem?
>>
>>>
>>>i try to fitch for name as below put the name4 as (jon kamel) mean 2 parts with space between the name.
>>>
>>>
>>> if LEN(ALLTRIM(thisform.text10.value)) > =3
>>>
>>> For x=1 to getwordcoun(thisform.text10.value)
>>>
>>> lcName = getwordnum(thisform.text10.value,m.x)
>>>
>>> if m.x=1
>>>SELECT F4,F1,name4,name3,name2,name1 from x2;
>>> where name4=lcName ;
>>> ORDER by name4;
>>> into cursor crsMyCursor readwrite
>>>
>>>else
>>>
>>>endif
>>>endif
>>>
>>>thanks
--sb--