Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Release Form and combobox inside grid
Message
De
29/08/1997 07:28:57
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00047386
Message ID:
00047529
Vues:
23
>>>>>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

Hi Barbara

I will give more details about what I want.

Form1 calls form2. The user look for information on form2 and returns to form1. If the user closes the form2 I retain the form1, but if the user closes the form1 I would like to release the form2 if it is visible.
Antonio Carlos Kleinübing
Systems Analyst
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform