Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetFocus Method for Control Not executing
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00084832
Message ID:
00084866
Vues:
34
>By 'Not Recognizing' I mean, that in the code widow for the LostFocus Method. This , thisform, enable (......) are seen as Foxpro Keywords and are displayed with the keyword color. SetFocus is NOT seen as a keyword. When I type it in, it is displayed in the String color. If I only type in the first four character of SetFocus, it is displayed in the Keyword color, but when I type in the Full Method Name, it is displayed in the string color.
>
>The line of code, when you look at in the debuger, is executed without any errors but focus is not set to the control that is specified. If have tried the following ways of calling the SetFocus Method.
>
>This.SetFocus
>ThisForm.txtPassword.SetFocus
>frmValPwd.txtPassword.SetFocus
>
>In all cases, the setfocus Method does not appear to do what is expected. In all cases focus in set to the next control in the tab order whether I attempt to issue a setfocus or not.
>
That's normal syntax coloring. Try using NODEFAULT from the Lostfocus to get the focus to remain where it is.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform