Information générale
Catégorie:
Programmation Orientée Object
Mark,
> Can you just hide the form instead of closing it?
No, the form needs to be closed...if the user opens 50 patient screens throughout the day, I think just hiding them all would be a bit inefficient on resources, no?
> This is also a way to have values returned from forms
> that are created with the CREATEOBJECT. Store the
> return value in a property of the form (say uRetValue)
> and get at it through the forms collection.
> (_screen.forms(lnFormIdx).uRetValue).
When I say return a value, I mean something equivalent to:
DO FORM MyForm NAME frmMine LINKED to lcReturnValue
In other words I don't need to do anything special (except include an extra keyword) to get a value back. Now, I assume you are saying to do something like the following:
frmMine = CREATEOBJECT('MyForm')
frmMine.Show(1)
lcReturnValue = frmMine.SpecialProperty
This is all well and good, but frmMine will no longer exist on the third line there. How can I access a form property after the form has been closed? Unless as you said I just hide all my forms and never release anything...I don't think I can do that due to resource constraints
Thanks,
JoeK
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