>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement