>>Does anybody know how I can programmatically chop characters off at the first space within a value. For example if the value is Morocco Tops then I want to see Morocco and if the value is Turkish Fabric then it should say Turkish.
>>
>>Any help would be greatly appreciated
>
>Many ways really.
>>alines(aStr, m.lcStr, .t.,' ')
>? aStr[1]
>
>*or:
>? GetwordNum(m.lcStr,1)
>
>*or:
>? iif(occurs(' ',m.lcStr)>0,left(m.lcStr,at(' ',m.lcStr)-1),m.lcStr)
>
etc
>CetinIt wouldn't be FoxPro if it didn't have at least 3 ways to do something. :)