Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing class array properties to methods
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Passing class array properties to methods
Miscellaneous
Thread ID:
00332569
Message ID:
00332569
Views:
44
Hi gang,

I have a custom class in which I've defined an array property. I now want to pass that array, BY REFERENCE, to a method in the same class which updates that array, similar to the following:

THIS.MyMethod( @THIS.MyArray )

Doesn't work -- neither does removing the @ sign (the parameter shows as .F. in the method).

This method MUST accept the name of another, non-property array as a parameter -- I can't assume automatic usage of THIS.MyArray in all cases. And, if I simply don't pass a parameter when I do want to use THIS.MyArray, then I don't have the array by reference -- or does that matter?

Any ideas would be greatly appreciated.

TIA,
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Next
Reply
Map
View

Click here to load this message in the networking platform