Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form properties disappear

Status
Not open for further replies.

Loomis

Programmer
Jan 4, 2000
30
US
I have a main form that calls a child form (Do form mychild1.scx)that in turn calls a child of its own (do form mychild2.scx. When I launch the main form and then child1, none of child1's properties appear in the debug windows and a subsequent launch of child2 results in child2 being unable to access child1 properties. However, if I don't launch the main form and instead begin with child1 and then child2, all child1 properties are available. Seems I am missing something simple.

Loomis
 
When you launch your forms use the following type of call:

DO FORM frmMyForm NAME oForm

...this will result in your having a variable/object reference named oForm that you can use to refer to the form. Use different variables for each of your calls...oForm1, oForm2, oForm3...

Slighthaze = NULL
[sub]craig1442@mchsi.com[/sub][sup]
"Whom computers would destroy, they must first drive mad." - Anon​
[/sup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top