Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
No SelectOnEntry in Access 97 Textbox?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00237824
Message ID:
00238294
Vues:
19
Hi Hugo,

Is there a quick way to make this work this way for all numeric text boxes in an existing application? And not for non-numeric test boxes...

Joe

>This method will affect ALL the text boxes, datasheet vies, queries, you name it. What you can do is use the OnEnter event on the form and set the selstart and sellength fields. To select the whole field by code, use this snippet:
>
>me.text1.selstart = 1
>me.text1.sellength = 0
>
>This will effectively de-select the entire field. To select the entire field by code, use this snippet:
>
>me.text1.selstart=1
>me.text1.sellength = len(me.text1.text)
>
>HTH
>
>Hugo
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform