Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ActivePage and Pages collection not the same.
Message
De
11/01/2000 11:49:05
 
 
À
10/01/2000 20:23:45
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00315867
Message ID:
00316272
Vues:
23
>Dan-
>
>I added a button to my test form that, when clicked, tells me what activePage is. When Page3 (which is the last page, since I moved Page4 to the front) is active, activePage does = 4, as expected. And, when Page4 is active, ActivePage does equal 1.
>
>I'm using VFP 6.0 w/ SP3.
>
>I reordered these pages in design, not during runtime.
>
>I still don't know what the actual result is. Does the active page change (even if incorrectly)? If not, then if you have the code in an event, you may need to add a NODEFAULT.

Ok. Now try this in the button.

?THISFORM.PageFrame1.Pages( THISFORM.PageFrame1.ActivePage ).Name

I'm guessing the example above when the ActivePage is 4, the name of the page will return "Page4".
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform