Yes, you must pass any array by reference. If you pass it by value, only the first element is passed.
Vlad
>Interestingly, there'll be no complaint from VFP if you pass it by value, DIMENSION and assign values to it in Init. It'll behave just as if you had passed it by reference, but will be externally unchanged when Init completes. However, if you pass it by value, and don't dimension it, then try to reference it in someway (eg. try ALEN() on it), an error will occur.
>
>George
>
>>Also, pass the array by reference and not by value.
>>
>>Vlad
>>
>>>Assuming that the array has been dimensioned, prior to your call, pass the variable to the CREATEOBJECT() function without quotes.
>>>
>>>hth,
>>>
>>>George
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