Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alternative to Setfocus from within Valids...
Message
 
 
À
25/07/1999 13:35:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00245868
Message ID:
00245876
Vues:
23
Harry,

You can call TheOtherControl.SetFocus() from this.LostFocus()

>My form traps the PGDN key and sets the focus either to a command button (if focus is on another control) or to the first control on the form if focus is already on a command button. Works OK.
>
>However, if I'm in another form and need to call that first form up in order to add a record on the fly, the setfocus then falls over because we are running it from within the valid clause of the calling form. This much I understand.
>
>Trouble is I don't know what alternatives there are - if any - to get round vfp's refusal to allow the setfocus call in these circumstances.
>
>Is there one?
>
>Harry
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform