Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delay instantiation of the objects - questions about thi
Message
De
05/02/2001 12:16:25
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00472503
Message ID:
00472529
Vues:
32
>Hi everyone,
>
>I read several threads, where it was suggested to delay instantiation of the objects on the unactive page. I have several questions related with this technique.
>
>I have a Form with 8 pages on a pageframe with lots of objects. This Form used for constructing User Selection Criteria.
>
>Each page has a Container1 and all objects belong to Container1 on the appropriate page.
>
>Suppose, I make these containers to be separate classes. Then I instantiate this container by PageFrame1.PageLender.NewObject() or AddObject(), what's the order of events here? Do inner objects Inits fire before Container.Init?
>
>Also in my code I usually use full reference to the object, like thisform.PageFrame1.PageLocation.Container1.btcc_ZipCode. Can I keed this notation or should change it to use always relative notation instead.
>
>Thanks in advance.

First innermost object inited and last topmost parent. However innermost object can reach the properties of outermost during init (ie: myForm.myContainer.myControl is inited before myForm but can query myForm.width)

With classes it's more appropriate to use relative so they're portable IMHO.
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