I have an issue common throughout my app. Lets say i launch a standard data form, then from that form I launch a child form that is modal. At that point the main visual foxpro screen is not closable _screen.closable=.f. And that is the correctly so.
I want to close the child form and the parent form all at once, from the child. But when I do this the main screen is no longer closable. Even though there are no forms active.
Here is some sample code, contained in a command button on the parent form:
in all cases both forms close leaving the app open to the main screen, but the main screen is not closable except through the menus. The x is gray.
thisform.ostatemanager.openchild('mychild.scx')
thisform.close()
OR
thisform.ostatemanager.openchild('mychild.scx')
_screen.closable=.t.
thisform.ostatemanager.closeform('myparent.scx')