Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Identifying properties
Message
 
 
À
01/05/1998 07:11:03
Allen Hanna
H. A. Hanna Associates
Indianola, Indiana, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00096229
Message ID:
00096261
Vues:
13
Allen,

You can use program() to send the method name to the UDF.

>I want to call an external function from object properties. For example, clicking MyButton would have this code in it's click property:
>
>ExternalFunction(this.name,this.parent.name,'click')
>
>The external function would look something like this:
>
>function ExternalFunction
>parameter object,parent,property
>do case
> case object='MyButton' and parent='MyPage' and property='click'
> do something
>endcase
>
>My question is, how can I reference the property that made the call to the function without the explicit word 'click'. I would like to use something like this.property, similar to identifying the object with this.name.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform