Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create member in code before other members instantiate
Message
 
To
31/08/2009 14:36:35
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01421954
Message ID:
01422069
Views:
147
Hi Dragan,

I guess that ControlSources that link to aliases are your problem. The proper way in VFP would be to set BindControls to .F. in the form, open the tables in the BizObject when you need them in code and change BindControls to .T. when the form and all objects are fully instantiated.

If your issue is really the Init event (some how I doubt this, though), then the solution would be to set the NoInit flag for all contained control and call Init from the Init event of the business objects. The NoInit flag is available from the Class > Edit Properties and Method when you select the contained control.
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform