>Guys, try this
>
>In VFP5.0 make a new form with three text boxes in it.
>Set the value of the first textbox to ="A", Format to K.
>Set the value of the second textbox to 9, Format to K, Input Mask to 99999
>Set the value of the third textbox to 9, Format to K, Input mask to 9
>
>Now tab between them.
>Now double click at each end, and in the middle.
>
>Do you get unpredictable 'Select all' results?
>
>I just want to be able to click on a textbox, have all the text or numerical values selected. Can't seem to get it done
This worked for me. I did get some weird results but that was due to the value property being set. I set it interactively and no problem with the following in the gotfocus().
NODEFAULT
TextBox::GotFocus
THIS.SelStart = 0
THIS.SelLength = LEN(ALLTRIM(THIS.Value))
Jon Paskett
Microsoft Certified Systems Engineer
We all have to start somewhere...
Sometimes over again!