Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing drive letter to form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00172019
Message ID:
00172036
Vues:
80
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
Fil
Voir

Click here to load this message in the networking platform