>How do I pass an array to a class?
>
>I am trying to do something like this:
>oMyObject = CREATEOBJECT('MyObject',TheArray)
>
Arrays must be passed by reference:
oMyObject = CREATEOBJECT('MyObject',@TheArray)
Pass-by-reference is subject to side-effects - if you change the content or size of the array when passed in, the changes will carry back to the calling routine. If you need to assign the content of the array to another variable or propery, you either need to copy each array member or use a function like ACOPY()