General information
Category:
Coding, syntax & commands
>I have a form that needs to receive a data path parameter that will then overwrite the data environment originally specified at design time.
>
>After looking through all documentation, I have set the data environment's AutoOpen property to .F. and place table opening code in the OpenTables method. However, when a form receives parameters which are received by the Form.Init Method, the data environment has already been established.
>
>How can I trap these parameters passed to the form before the data environment is set?
>
>P.S. The form is part of a FormSet
If you have an application object, create an array called aFormParameters. Just prior to issuing DO FORM from somewhere, fill the array with whatever parameters you need including the datasession id that you desire. In the .BeforeOpenTables event of the form, scan the aFormParameters array and assign the datasession id to your form. Just a thought.
Steve
Previous
Next
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