Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refreshing a From from another form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00592435
Message ID:
00592455
Vues:
14
This message has been marked as the solution to the initial question of the thread.
Hi Alfred,

After you save the reference to the main form to the property of the modal form in the Init you cam use it later to access properties of the main form or it's methods.
* Modal form Init
LPARAMETERS toForm
Thisform.oMainForm = toForm
...
* Later in the modal form
Thisform.oMainForm.refresh()

* Destroy of Modal Form
Thisform.oMainForm = Null
>Hi Sergey
>
>thanx for your reply, Isn't there a way to call teh refresh() method from the calling form?
>
>
>
>>You can pass the reference to the main form as a prameter to the modal form.
Do MyModalForm WITH thisform
>>
>>>Hi Everyone.
>>>
>>>I have a main form that call a second 'Modal' form from a button, on this second form, a value can be changed from .T. to .F. or vice-versa.
>>>
>>>How can I refresh the main from from within the frm on top?
>>>
>>>Thanx in advance for your help.
>>>
>>>Alfred Trabulsi
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform