>>>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
I think you are right. However, 'tis with arrays that this issue usually becomes a problem. A non-array property can be passed by value. Passing an array by value only passes the first element.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)