Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting ActivePage of PageFrame Not Working
Message
 
 
À
10/09/2008 10:38:52
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01346339
Message ID:
01346344
Vues:
13
>>>The ActivePage prior to this line of code = 3.
>>>
>>>THISFORM.pgfLevel.ActivePage = 1
>>>
>>>The ActivePage after that line of code = 3.
>>>
>>>Why?
>>
>>Could it be that there is something preventing activating the page? Any code in some controls valid or in the Page.Activate method or some other places? Do you have error handler in place?
>
>What could prevent it?

NODEFAULT in Page.Activate or Valid of some controls on the active page returning false. Or some code in thisform.Refresh() or thisform.Activate trying to set focus to some object on another page. These are quick things that come to mind, could be hard to figure this out.

Put
try
  thisform.pgFrame.ActivePage = 3
catch...

endtry
And run this code in debugger to see what exactly is being called here.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform