Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing drive letter to form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00172019
Message ID:
00172036
Views:
79
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
Previous
Reply
Map
View

Click here to load this message in the networking platform