Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't Select Text or Value in Textboc
Message
 
À
31/01/1997 14:01:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00018984
Message ID:
00018989
Vues:
36
>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!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform