Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetFocus won't work in Valid?
Message
De
06/04/1999 12:42:56
 
 
À
06/04/1999 03:36:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00205503
Message ID:
00205626
Vues:
18
Gan,

At least in Hacker's Guide, it specifically states that SetFocus can't be called from the Valid or When methods. SetFocus should be called from GotFocus, LostFocus.

To control focus from Valids, you need to use Return 0, Return .F.

PF


>I need to SetFocus back to the textbox after it losses it focus when it's empty. I try setting enable = .F. for all other controls but it's not very good idea for my task. However the SetFocus won't work in Valid, compared to Init.
>
>Thanks in advance.
>
>Gan

(On an infant's shirt): Already smarter than Bush
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform