Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To fix or not to fix, that is the question
Message
From
11/07/2006 10:23:55
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01135306
Message ID:
01135333
Views:
11
>><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
Map
View

Click here to load this message in the networking platform