>FormReleased FormActivated? > Form1 ? > Form2 ? > Form3 ? >>How about some of them were minimized in that time?
Form1 = CReateObject("Form") Form2 = CreateObject("Form") Form3 = CreateObject("Form")then releasing Form2 will release the second form you created as the object reference to the second form is Form2.
DO FORM Form1 DO FORM Form2 DO FORM Form3Tehn releasing Form2 may not do anything but cause an error. You ahve not explicitly named the object references and VFP will give them names. Usually the name for the object reference will be the same as the name of the scx that the form is created from, but not always. Depending on VFP to name your object references is a poor design approach. You shoyuld always explicitly name your object references so you know for sure what those reference names are.
DO FORM Form1 NAME Form1 DO FORM Form2 NAME Form2 DO FORM Form3 NAME Form3The only problem here is that if there is a form named Form2 when the second line is executed the existing form named Form2 will be destroyed and a new form will take its place.