Mike Yearwood
Toronto, Ontario, Canada
General information
Category:
Coding, syntax & commands
>><snip>
>>>The PRG calls a UDF, passing the array like this.
>>>
>>>DO UDF WITH SomeArray
>>>
>>>The programmer attempted to receive the array in a UDF.
>>>PARAMETERS SomeArray
>>>
>>>Technically, the array wasn't passed, just the first element's value.
>>
>><snip>
>>
>>The whole array is passed in this case because the DO command passes parameters by reference (unless they are enclosed in the parenthesises).
>
>I thought it too. But I prefer Function(@myArray) anyway, since it's clearer. I don't use DO in my code.
I agree with you! Once again, a case where having more than 1 way to do something is not better.
Previous
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