Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing array property of an object
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00204115
Message ID:
00204179
Views:
19
>Hi all,
>
>Has anyone figured out the right syntax for passing an array property or an object to a function or method?
>
>All of these give me a syntax error, and I am out of ideas:
>
>@.aArray
>@this.aArray
>@thisform.thisobject.aArray
>@(.aArray)
>@(this.aArray)
>@(thisform.thisobject.aArray)
>
>TIA
>
>Regards,

In addition to Barbara's suggestion, you could also make a custom object whose only property is an array. You could write some methods for sizing, adding, deleting the elements. This object can then be passed to functions. Short of that, you're pretty much left with copying the property array to a local one, passing that and then copying any changed results back to the property array.

Steve
Previous
Reply
Map
View

Click here to load this message in the networking platform