Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement