Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Release Form and combobox inside grid
Message
 
À
28/08/1997 14:34:59
Sonny Chouinard
CHCA Computer Systems Inc.
Lachenaie, Québec, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00047386
Message ID:
00047466
Vues:
27
>>>>How can I release one form from another? (I am using VFP 5.0a)
>>>>I tried myform.RELEASE but it doesn't work. I receive the error message "objetc myform is not found"
>>>>
>>>
>>>Have you tried the following :
>>> Activate Window MyFormName
>>> _SCREEN.ActiveForm.Release()
>>>
>>About the release, _SCreen.activeform.Release(), release only the form that has the focus. Is there away to use setall with _screen.activeform??
>
>If you do Activate Window OtherWindow and set _SCREEN.ActiveForm.Release(). The focus will change to the other window.
>You can do also :
> oMyForm= CREATEOBJECT('MyForm')
> oMyForm.Show()
> oMyForm.Release()

Alternatively, you can pass the form name to the second form as a parameter, store it to a form property and use it for any purpose:
do My2ndForm with thisform   
** calls the second form, passes the present form name.
** In the INIT of the second form
Parameters oform
thisform.ocallingform = oform
** Stores the form name in a form property 
** be sure you've added this form property

** Later in form
thisform.ocallingform.release()
** Will release the first form
I use this method frequently for storing information in the calling form - if I've done a find, a memoedit, etc.

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform