Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Focus --- NOT WORKING!
Message
 
 
À
07/05/1998 11:47:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00097716
Message ID:
00097727
Vues:
22
>Does anyone know why the following happens?
>
>I am on a Edit Page with a lot of Text Boxes.
>
>I press the Add New button. It scatters blanks to all of the Text Boxes and tries to Set Focus to Text Field 1.
>
>For some reason, VFP will not Set Focus to where I tell it too. Immediately after the textfield1.SETFOCUS() statement, the textfield1.WHEN runs and then the textfield1.VALID runs, even though I have not been "been" to the field yet. Focus lands at the top of the page.
>
>Most of the time for me, the SETFOCUS() command works like a champ.
>
>By the way. This is a two page form and I have the same button "ADD NEW" that calls the same methods and focus is set to the other page TextField1 just like it is supposed too??????
>
>Thanks....Tim

What command are you issuing? ThisForm.ContainerName.TextBoxName.SetFocus()? ThisForm.TextBoxName.SetFocus()? You also can not issue a SetFocus() from Valid method of a control.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform