Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using load to set up enviroment
Message
 
To
03/11/1996 18:27:27
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00011395
Message ID:
00011504
Views:
34
>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!

My guess is that the parent form object has a different data
session than the child form object. This is why we have to
set the datasession in each form. I guess you could pass the
datasessionid to the parent form. Then your the databound objects
will be able to 'see' your tables.

Ah... Datasessions ...

HTH,

Marc

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Previous
Reply
Map
View

Click here to load this message in the networking platform