>>A word I pronounce: BUG.
>
>In order to overcome this problem we have to move code into Page's Activate. But this presents other problems. One of them: how to find the name of the page based on its PageOrder?
>
>Thanks.
Add this method to the pageframe,
it is a horrible solution,
but without structuring the object it is better difficult to do of
MemberOrderToObject(iOrder)
IF this.Objects[m.iOrder].PageOrder=m.iOrder
RETURN this.Objects[m.iOrder]
ENDIF
Private iIndex
FOR iIndex=1 TO this.Objects
IF this.Objects[m.iIndex].PageOrder=m.iOrder
RETURN this.Objects[m.iOrder]
ENDIF
NEXT
A best solution is to add the MemberIndex property to all VFP classes
and to write the whole code to manage it in
- Member.Init
- RemoveObject
- AddObject
-.....