Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using load to set up enviroment
Message
From
04/11/1996 21:07:06
 
 
To
04/11/1996 01:44:46
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00011395
Message ID:
00011466
Views:
33
>>Initially, I construct a form, with an empty private data enviroment.
>>The controls are data bound to a database, not opened yet.
>>Then, I use the Load event to open the database and use table.
>>This form run OK!
>>Then I save this form like a class, and create a form derived for that class. Now, I do form this form, and an error appears! Apparently, something is checking the undefined ControlSources from the databound controls, before the Load event!
>
>did u put anything in the sub-classes for load event?
>if so try adding a call to the formet load event (with the :: operator)
>
>Arnon

I tried to put the Load only in the derived form.
I tried to put the Load only in the form class.

Nope.. When I do 'do form' crashes....

Curiosly, when I try something like:

oForm = createobj("formclass")
oForm.Show

all is in place!

But in this manner I can to set dynamic properties in the object to use in the load event, for example, to execute:

open database (this.db)
use (this.table)
Previous
Reply
Map
View

Click here to load this message in the networking platform