Hi Simon,
Thanks, but I think, it's the same as _screen.ActiveForm. I found, what was the problem. Before invoking my other form I did:
thisform.visible = .f.
do form ....
thisform.visible = .t.
So the calling form becomes inactive. So, I just passed its name as a parameter. I had to change couple of forms to accomodate this change. Clearly, using Roi's idea this process would be much simpler...
>Hi Nadya
>
>I use _VFP.ActiveForm and it works for me.
>
>
>If Type("_VFP.ActiveForm")=="O"
> ThisForm.oCallingForm=_VFP.ActiveForm
>Endif
>
>
>Simon
>
>>Hi everybody,
>>
>>I was using this code in Form's load:
>>if type('_screen.ActiveForm.name')='C'
>> this.CallingFormName=upper(_screen.ActiveForm.name)
>>else
>> this.CallingFormName=''
>>endif
>>
>>However, it returns "", though form is called from another form. Is there another way to know, what form is called from another form?
If it's not broken, fix it until it is.
My Blog