Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Phantom Phocus - SetFocus()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00931166
Message ID:
00931177
Vues:
22
You still don't need the call to the Click (unless you've got code there). It's not doing anything and you shouldn't call an event anyways. If you need to call code that's there, you should create a form method and put your code in there and call that method from your button and from the page Click.


>Okay, you were right. Here's what I did:
>
>
>WITH ThisForm
>	SELECT (.cTable)	&& Select the appropriate table for the Page of
>				&& the PageFrame the user is on.
>	IF .cmdTransDist.Caption = "\<Transaction"
>		.pgfAPTransaction.Page1.Click()
>		.pgfAPTransaction.ActivePage = 1
>		*.pgfAPTransaction.Page1.SetFocus()
>		.pgfAPTransaction.Page1.txtdVoucherDate.SetFocus()
>	ELSE
>		.pgfAPTransaction.Page2.Click()
>		.pgfAPTransaction.ActivePage = 2
>		.pgfAPTransaction.Page2.SetFocus()
>		.pgfAPTransaction.Page2.txtcAcct1.SetFocus()
>	ENDIF
>ENDWITH
>
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform