Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a form's property to a UDF
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Passing a form's property to a UDF
Divers
Thread ID:
00844074
Message ID:
00844074
Vues:
48
Hi all,
I have not never had need to make this since now, but I need to pass (by reference) a form's property (which is an array) to a UDF (within a form's method).
The sintax:

=myfunction(@thisform.myproperty)

give an error at runtime ("Alias thisform not found"), and if I remove the "@" only the first array element is passed (of course).
I have found a workaround using something like:

=ACOPY(thisform.myproperty, laarray)
=myfunction(@laarray)
=ACOPY(laarray, thisform.myproperty)

but I'm asking myself if this is the right way to do the job and if there are other way to have this done.
Thanks

Franco
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform