Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get form reference
Message
From
27/08/1999 02:36:46
 
 
To
27/08/1999 00:07:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00258270
Message ID:
00258282
Views:
15
You get the form name
cformname=WONTOP()
or
cformname=_SCREEN.ACTIVEFORM.NAME()

Then you can reference it as:
&cformname..property()
i.e.( myform.mymethod() or myform.myproperty() )

In the object oriented fashion...
as it is a nobject.

Often I have had to make the forms name a public variable.
and have done it like.
PUBLIC myform &&IN the start program

IF WONTOP()='MYFORM'
Myform.mymethod()
Myform.myproperty=.t.

ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform