>In a form of mine, I am trying to put a pageframe within another pageframe. At run-time, the error message "Cannot add XX. Class definition is cyclical" shows up. The error is easy to reproduce; just create a form as a class, and add a pageframe within another pageframe on it. Note that the pageframes must be subclasses of the base classes that vfp provides.
>
>Is this a bug or a misfeature? I am using vfp 9 beta, by the way.
>
>Thanks,
>
>Eyvind.
I don't have VFP9 yet. Would this error :
Public oForm
oForm = Createobject('myForm')
oForm.Show
Define Class myForm As Form
Add Object myPgf1 As PageFrame With PageCount=4
Procedure myPgf1.Page1.Init
This.Newobject('myPgf2','Pageframe')
With This.myPgf2
.Top = 0
.Left = 0
.Width = This.Parent.PageWidth
.Height = This.Parent.PageHeight
.PageCount = 3
.Visible = .T.
Endwith
Endproc
Enddefine
Cetin