Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting focus to a grid's control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00301225
Message ID:
00301394
Vues:
33
>If you have gotten a setfocus to execute in a vlaid event without getting a clear error that says "SetFocus is not allowed in a Valid" then you have found a bug in VFP. It is not an issue of the setfgocus being a questionable thing to do, it is that VFP does NOT allow it ever. Besides the event to use for the action of a command button is the Click event and not the valid. The Valid event on a command button is there strictly for backwards compatibility.

I did actually get a Setfocus to "sort of" run in a Valid, when I was testing something in a thread a few months back, and I believe it was a commandbutton. It was really more like it was ignoring it, though, rather than executing it, as I recall...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform