Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetFocus on Grid field not working after Form Activate
Message
 
 
À
13/11/1998 05:27:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00157317
Message ID:
00157391
Vues:
16
>I have a grid with a search button in it. In the click event of the button I call another form and, depending on the value returned by the form, SetFocus to another field on the same row in the grid. The SetFocus does not seem to work as the focus always seems to be the first field on the row. I have done some investigation and it seems that SetFocus to a field outside the grid works. Also if I keyboard the correct number of tabs then this seems to work. What I want to know is why SetFocus does not seem to work. Am I missing something? Is something else moving the focus after?

is the button in column1? can you post your click event code? do you have any setfocus in the form.activate, or in the grid afterrowcolumnchange, beforerowcolumnchange? if you are good with the debugger, you should probably set a breakpoint in the click event and maybe even turn on event tracking. i set focus to my grid columns from within my grid. but i do not have something in my grid that does another form and then returns - not sure what the event sequence would be on that.

brenda
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform