Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing Objects...IDEAS?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00167801
Message ID:
00168457
Vues:
21
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
Fil
Voir

Click here to load this message in the networking platform