Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataEnvironment Class problem
Message
De
02/05/2003 09:07:58
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
02/05/2003 08:56:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00784061
Message ID:
00784067
Vues:
35
>I have a problem with DataEnvironment class.
>I have made aForm class with CDELoader member object on it with Init method which contains code for creating DataEnvironment class which I have created in separate .PRG program. I have put in DataEnvironment class OpenTables() method in Init method of that DE class.
>I have made a subclass of aForm class – cForm class. In cForm class I have added some textboxes with control sources which tables are defined in DE class.
>When I try to CREATEOBJECT(“cForm”) I get message “Error instantiating the object”. When I remove control sources from textboxes everything is OK.
>So I have get to this conclusion: instance of DE class is made after textboxes, and that is why control sources couldn’t pass. OpenTables() do open tables but, as it appears, too late.
>
>Why is this happening, and how can I solve this problem?

Innermost control's init fires first and form.init last. Form.Load fires before init(s).
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
Répondre
Fil
Voir

Click here to load this message in the networking platform