>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