General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only