Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays in Objects
Message
From
19/02/2002 08:55:36
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
19/02/2002 08:29:37
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00621830
Message ID:
00621854
Views:
22
>>I've been trying to use the _arraylib in _utility and also the array handling object from the Feb Foxtalk (Kit Box) but I can't pass array properties to the methods by reference:
>>eg.
>>
>>oarraylib.insaitem(@otablestructure.acolumns,"test",1)
>>
>>I have for the time being had to subclass the arraylib and modify it to be able to change arrays that belong to it and use that as the subclass for any classes I anticipate having an array property.
>>
>>Am I being stupid?
>>
>>thanks in advance
>>Penda
>
>I think you can't pass array properties, as parameters. You either have to copy the entire array property to a (non-property) array (slow!), and pass that new array, or pass an object reference, so that the function / method modifies the object properties directly.
>
>Hilmar.

Hilmar,
it's not the array, you can't pass properties as parameters.

Properties are a little bit different to variables, even if it's wrapped to us.

Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform