Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get form reference
Message
De
27/08/1999 02:36:46
 
 
À
27/08/1999 00:07:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00258270
Message ID:
00258282
Vues:
16
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform