>Hi,
> I would like to know what basis is used in VFP for form when form released. IOW, if there are 3 forms load in sequence - form1, form2 and form3, if try to release form as the following, which form will be activated?
>
>
>FormReleased FormActivated?
> Form1 ?
> Form2 ?
> Form3 ?
>
>How about some of them were minimized in that time?
>
>Thank you
John,
AFAIK forms are kept in a stack with their order of creation first time. Then stack changes as each one is activated. ie: if forms were activated :
form1
form2
form3
form4
forms(1)=form4
...
forms(4)=form1
Then if you click say form3, list become :
forms(1)=form3
forms(2)=form4
forms(3)=form2
forms(4)=form1
LastInFirstOut. But since it's hard to always how correctly this works you should test it yourself. Add a button to your forms with click.code :
_screen.print("Before release :"+chr(13))
for ix=1 to _screen.formcount
_screen.print(_screen.forms(ix).name+chr(13))
endfor
thisform.release
Also put the same code in activate of forms (temporarily - best with test forms, change text as appropriate and ignore first time activation messages).
cetin