Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable defenition
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00354722
Message ID:
00354748
Views:
22
Benoit,

Your English is great.

It violates encapsulation to pass an object property out to some other things by reference.

To get an array property out you have to acopy() it too/from a local array.

acopy( this.aStuff, laStuff )
=TheUDF( @laStuff )
acopy( laStuff, this.aStuff )

You might want to reevaluate the architecture that is requiring this kind of manipulation. If you are translating old Clipper code it would be a good time to redesign to make it more object-oriented.

>I know how to define a array property but how can i passe by reference this array to a function outside the form. my function is in a .prg This prg hold some function use from other form.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform