Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Passing a form's property to a UDF
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement