Hi Morys,
>How do I pass an array to a class?
>I am trying to do something like this:
>oMyObject = CREATEOBJECT('MyObject',TheArray)
For arrays you must pass by refrence:
oMyObject = CREATEOBJECT('MyObject', @TheArray)
Also, if you plan to return an array, it is not possisble, it is done the same way: create a blank array, pass it by refrence and have the method or program modify the passed array. Then you when you come back, the local array will have been modified from the proc.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only