Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't call setfocus() from init() ??????
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00747302
Message ID:
00747322
Vues:
15
Hello David,

If you have one form (FORM_A) that has some objetcs (Form_A.Text1) and then, you call another form from this object (Form_A.Text1.Valid). For Example: DO FORM_B

So, in FORM_B if you have a SETFOCUS (any event or method) you will receive this error message... It happens because you have a call from a VALID (not necessary the current object).

Sorry about my English, but I think I could explain you what is doing wrong! :-)

[]s!

and... of couse, change the call (DO FORM_B) to LostFocus (instead Valid) and your program will work fine....
If you are not using VFP 7, you could have problems with LostFocus... sometimes it runs twice...

[]s again!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Rodolfo Duarte
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform