Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class definition is cyclical
Message
De
24/08/2004 09:31:47
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
24/08/2004 07:57:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00935864
Message ID:
00935892
Vues:
23
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform