Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function keys and validations
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00665069
Message ID:
00665902
Vues:
22
This message has been marked as a message which has helped to the initial question of the thread.
Hi, Jim!
>IF VarType(Thisform.ActiveControl) = "O" AND PEMSTATUS(Thisform.ActiveControl,"SetFocus",5)
>   Thisform.ActiveControl.SetFocus()
>ENDIF
But have an eye on don't do this within any Valid event (or deeper in the call stack) to prevent from the error "2012 Cannot call SetFocus from within a When, Valid, RangeHigh or RangeLow event"!
SeBaFlu
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform