Information générale
Catégorie:
Gestionnaire d'écran & Écrans
E.R.
>I've just noticed that the Init is firing after Load. Isn't supposed to be the other way around? The property is getting set but I'm trying to get the drive letter for a procedure in the load event.
The load fires first. The init of the form fires after everything else has been initialized. This is good because if any of the form's members fail to initialize then you can return .F. from the form init and cancel the form.
There are a couple of different approaches you can use. For example, if you use unbound controls you can set the dataenvironment autoopentables property to .F. and then call the opentables method from the form's init (where you have the drive parameter available).
Or if you use an application object you could have an app object method that dataenvironments query to find out what drive they should use.
HTH
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