>>When the user selects a textbox, is there some way the text in it can be selected - not the entire textbox contents - only the TEXT in the control. If the user chooses to copy the selected text we don't want the blank spaces of the control to be copied.
>>
>>I know this is a small problem, but if someone has done it, I'd be happy to know how it was done.
>>
>>
>>Klas Nygren
>Klas,
>Sending w/o testing ! Test it first :
>this.selstart = 0
>this.sellength = alltrim(this.text)
Cetin
Ooops. VFP3 in your signature + forgot len() :
>this.selstart = 0
>this.sellength = len(alltrim(this.value))
Cetin