Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a form's property to a UDF
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Passing a form's property to a UDF
Miscellaneous
Thread ID:
00844074
Message ID:
00844074
Views:
47
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
Map
View

Click here to load this message in the networking platform