Paul Newton wrote:
> Hi
>
> I have a top level form which calls another (child) form (modeless,
> showwindow in top level form). If the (putative) child form does not
> exist I want to DO FORM ShowData ... but if it has already been "done" I
> want to "re-use" it and refresh it. This is what I am doing in the
> parent form
>
> IF NOT WEXIST("ShowData")
> DO FORM ShowData WITH param1,param2 NAME ShowData
> ELSE
> ShowData.MyMethod(param1,param2)
> ENDIF
>
>
I do something similar with my forms:
IF WEXIST('Sampcomm')
SHOW WINDOW sampcomm
ELSE
DO FORM sampcomm
ENDIF
I also have some public variables floating in the background and I can
set these from one form, then call the code above and look for them in
the activate. Do whatever is needed and blank them off. That works
nicely. If you want any more detials let me know.
Cheers
Peter
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.