>
In these cases, if we review VFP documentation, the form name has to be a public variable.>
>I don't think so < s >. If you instantiate a form manager in your main program with private scope, he is available to the rest of the app. Then the form manager can handle any of the dependencies between the forms in his collection.
Then why won't the following show a form when I comment out "PUBLIC frmForm"?
PUBLIC frmForm
frmForm=CREATEOBJECT('subForm')
frmForm.Show()
DEFINE CLASS subForm AS FORM
CAPTION=[Form name needs to be public]
ADD OBJECT text1 AS textbox
text1.value=[Hello world]
PROCEDURE queryunload
this.release
ENDPROC
ENDDEFINE
Imagination is more important than knowledge