General information
Category:
Forms & Form designer
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only