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.
LPARAMETERS toForm
Thisform.oMainForm = toForm
...
Thisform.oMainForm.refresh()
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--