Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing a From from another form
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00592435
Message ID:
00592455
Views:
15
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform