Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using load to set up enviroment
Message
De
04/11/1996 21:07:06
 
 
À
04/11/1996 01:44:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00011395
Message ID:
00011466
Vues:
38
>>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform