Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SelectOnEntry/GotFocus
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
SelectOnEntry/GotFocus
Divers
Thread ID:
00583553
Message ID:
00583553
Vues:
51
When the cursor (your blinking one) is moving through textboxes, you can set the SelectOnEntry property to .T. and set your format property to 'K' to have FoxPro display a selection over the data within the control.

When the below code is placed in the GotFocus Event, it takes care of selecting everything within the control, whether the field/control is empty or not, when the control contains Character or Date data type data. However, it does not seem to work for numeric data fields. Anyone know how to make this work for numeric data?

Textbox::GotFocus()
This.SelStart=0
This.SelLength=This.MaxLength
NODEFAULT

Of course, I have set the MaxLength to the length of the field in each case for the text controls.

Thanks,

Cecil
(a Texan out of his State)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform