Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddObject design and runtime
Message
 
To
07/07/2008 08:22:48
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01329366
Message ID:
01329368
Views:
13
>Hi,
>I there way to know if container add to the form in design time or runtime
>
>For example.. I need to have in the Container.Init()
>IF expression.. if container was add to the form using AddObject.. I must add bindevents code.. if container was add to the form in design time - then ignore bindevents .
>
>Any idea,
>Thanks
>Denis

Just add one more property in that class. Make it to be .T. as default. Then in Init:
IF this.BindEventsProp
   *** BINDEVENTS()
ENDIF
Then if you add that container in design mode just change this property to .f.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform