Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetFocus() behavior question
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
SetFocus() behavior question
Divers
Thread ID:
00303511
Message ID:
00303511
Vues:
45
I have a grid where I am validating the data in the BeforeRowColChange event when the user tries to exit the row. One of the cells being validated is the default text box containing the quantity desired. If the user forgets to enter the quantity, the validation code generates a reminder window, then does:
THIS.grcQty.grtxtQty.SETFOCUS()  && return to cell required
NODEFAULT                        && don't allow row change
The problem is that afterwards, the textbox is SELECTED, not just entered. The box is highlighted, and keystrokes don't appear unless the user exits the textbox and re-enters it.

The .selected property of the textbox is still at the default .F..

Can anyone tell me why this is happening, and how to fix it?

Thanks,
Neil Preston
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform