With search engines the consensus was to use the quotes " " for this purpose....
>Hello Steve
>
>I am not Allan, but I had the same requirement in an application I wrote years ago.
>
>I wanted my customers to be able to enter text to search for in my products database, and I needed to see if they had put in any leading or trailing spaces.
>
>For instance if my customers had entered 'cap' they would find 'cap', 'capasitor' and capstan', but if they had entered 'cap ' they would only find 'cap'. And if they entered 'tan' they would find 'tantal' and 'capstan', if they entered ' tan' they would only find 'tantal' if it was word number more than 1.
>
>Comprende? :-)
>
>
>
>>Allan,
>>
>>I'm curious...what do you plan to do with this information?
>>
>>>IMHO, it seems like a very basic requirement to know the length of the user input.
>>>I find it hard to believe that after all these years and versions of VFP that it is not available as a simple function.
>>>
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca