Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Created Form Class from Form Class
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Created Form Class from Form Class
Miscellaneous
Thread ID:
00789231
Message ID:
00789231
Views:
43
Defining the FORM object within the routine that uses it, releases it when that routine finishes it. I want to keep this form until 'I' release it.

Out of scope problem in routine that uses the form - I get error "MyForm1" not an object
      &frmMyForm..Caption= thisform.tprest+ "="+ lcRemotePath
where could I place this code to define "MyForm1" thru "MyForm9" to be maintained for the life of the session.
    FOR nVarWin= 1 TO 9  && Create View Windows
        frmMyForm= "MyForm"+ALLTRIM(STR(nVarWin))
        &frmMyForm= CREATEOBJECT("Form")
        &frmMyForm..Width= 550
        &frmMyForm..Show 
    ENDFOR
Then I will want to control when to release the forms from a button on the main form class.

* Tform *
DEFINE CLASS Tform As Form
Width= 375
Height=290
...
Edgar L. Bolton, B.S. B.B.A.
Next
Reply
Map
View

Click here to load this message in the networking platform