I just tried to reproduce this. It works for me. VFP 9 SP 1
LOCAL testForm
testForm = CREATEOBJECT("testForm")
testForm.Show()
READ EVENTS
CLEAR CLASS mybutton
CLEAR CLASS mypage
CLEAR CLASS mypageframe
CLEAR CLASS testform
DEFINE CLASS testForm as Form
ADD OBJECT pgf as mypageframe ;
WITH pagecount = 2, ;
mypage1.caption = "Test (1)", ;
mypage2.caption = "Test (2)"
PROCEDURE Unload
CLEAR EVENTS
ENDPROC
ENDDEFINE
DEFINE CLASS myPageFrame as PageFrame
memberclass = "mypage"
memberclasslibrary = "pageframe.fxp"
ENDDEFINE
DEFINE CLASS mypage as Page
ADD OBJECT btn as mybutton
ENDDEFINE
DEFINE CLASS mybutton as CommandButton
PROCEDURE click
this.Parent.caption = "New Caption (" + ;
TRANSFORM(this.Parent.PageOrder) + ")"
ENDPROC
ENDDEFINE
Tracy Pearson
PowerChurch Software
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.