Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Modeless forms in a very large program
Message
 
 
To
28/01/2008 11:25:34
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01284682
Message ID:
01286217
Views:
23
>>One more question if I may. I am calling both of these in the Data Enviornment Load Tables event. If I don't I get errors because the control source for the text boxes, etc. do not exist. Calling the prgs from there has me a bit worried although it seems to work ok so far. Any thoughts?
>
>You can do it in form's .load(), though then any objects of the form you may need are still not instantiated. As a legal workaround, you can do it in form's .init(), you only have to design the form with .BindControls=.f., and then in .init(), when you're done with opening tables, creating cursors etc, set it to .t. (too bad it's made to work only once - there are times when unbinding controls on a flip of a switch would be cool ;).

Good idea. BTW, it's funny that we were answering about form's Load in almost exactly the same time.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform