Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Save as a Class
Message
De
22/11/2000 11:18:49
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
 
À
22/11/2000 01:44:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00444486
Message ID:
00444643
Vues:
9
>Dear David,
>
>I do not use the data environmnent and my controls are not bound to any controlsource. My problem is that any command in the INIT method that reference "thisform.pageframe.page1.textcontrol.value" would cause an error. When I take a look in the Debugger the object can only be evaluted up to the "thisform.pageframe" level and beyond this it seems that it is not initialised yet. Strange since the INIT method is called from the "textcontrol". BTW the control that I have is a text box that itself is a subclassed. Could this be the problem?. Thanks.
>

>>>I have form that has a pageframe and this works fine if i call it via the "Do FORM". Since I have save this form as a Class. I get error in the INIT method of object inside the pageframe complaining that the pages object does not exists. Can someone help me here? Thanks.

What you're seeing has nothing to do with classes and subclasses and everything to do with order of instantiation. INIT() occurs from the inside out. That is to say, even though the page.Init() has been triggered, it does not complete until *all* of the objects on that page finish their Init(). IMO, it happens counter-intuitively, and that's why it's confusing at first... sort of like saying I can have a glass of water without the glass... but it makes sense in the OOP world.

What, exactly, are you trying to accomplish?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform