Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form class and data environment
Message
From
30/08/2001 21:23:52
 
 
To
30/08/2001 17:21:37
John Deupree
Long Term Care Authority
Tulsa, Oklahoma, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00551124
Message ID:
00551187
Views:
20
>I have a form class I have been using for data input for reports (dates, etc.). It is subclassed from my form base class. I instanciate this class in code using newobject..., set some properties, show the form (modal), grab the info I need from form properties and release the form.
>
>I added some code in the load of the base class that referenced the data environment. Forms that I design using this class run fine. However, the subclassed form won't run (instanciated from code). The error says 'Unknown member dataenvironment'. I'm assuming that it's because the DE doesn't exist yet? When does the DE get created? Do I need to base my subclass on a class that doesn't have the DE code in the load event?
>
>TIA
>
>John

I've heard this acronym somewhere which may help: LISA-G. When a form is created; the following events/methods run in this sequence:

L - load objects/members (DE as well?)
I - initialize objects/members then itself
S - show (or setfocus, not really sure here)
A - activate form
G - gotfocus

I usually start using references to members during the Init method. HTH.
ramil
~~ learning to stand still
Previous
Reply
Map
View

Click here to load this message in the networking platform