>Hi all,
>I want to reset the path where my database is stored.
>The application-object has the datapath stored to a property.
>The application-object is not public. I passes to the forms as a parameter.
>How can I acces this property from a Form load-event?
>I start my forms with oApp.doform("myform",with this")
>This methods contains a line like this "Do form ¶1 ¶2"
Hi Jim,
The parameters are passed to the form's Init event and the Load event wouldn't see them because it fires before Init. You can keep an reference to your application object in the property of the _SCREEN object. This way the Load of the form would have access to it and you don't have to pass it as a parameter to the form.
oApp = Createobject( ... )
_Screen.Addproperty("oApp", oApp)
...
Thisform.oApp = _Screen.oApp
...
--sb--