Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Paul, I too had bad luck trying to switch datasessions while running a form. Great documentation on this, eh. "...We don't recommend this..."
The easiest way I found to do this was to save the form, whose datasession I wanted to access, as a class. Then instantiate the form like oMyForm = CREATEOBJECT("formclass"). Then just code your data manipulation routines in new methods of the form. They can return a value to the form that you are currently running - like lcCustomer = oMyForm.GetCustName("ACE001").
Hope this helps.
Précédent
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