Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't Select Text or Value in Textboc
Message
 
To
31/01/1997 14:01:24
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00018984
Message ID:
00018989
Views:
32
>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!
Previous
Reply
Map
View

Click here to load this message in the networking platform