Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using load to set up enviroment
Message
 
À
03/11/1996 18:27:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00011395
Message ID:
00011504
Vues:
39
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform