Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ActivePage and Pages collection not the same.
Message
De
11/01/2000 13:18:47
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00315867
Message ID:
00316341
Vues:
18
>>>Well in design, the original order has swapped pages and none of the pages are in their original position. So how do I make a generic routine that will work with what I am trying to do above.
>>
>>You do a FOR EACH on the Pages, then compare the PageOrder property. Do a search on these two properties, there was a Hint of the day by Koziol that went into depth here.
>
>I found it. Thanks for the info.

FWIW, I have dealt with a similar situation with grids: I needed a property that would give me an object reference to the activecolumn in a grid. I created a custom property called CurrentColumn, created an Access method for it, and placed code like:
LOCAL loColumn
FOR EACH loColumn IN THIS.Columns
	IF loColumn.ColumnOrder = THIS.ActiveColumn
		THIS.CurrentColumn = loColumn
		EXIT
	ENDIF
ENDFOR
RETURN THIS.CurrentColumn
you could do the same for your pageframe class.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform