Mike Yearwood
Toronto, Ontario, Canada
General information
Category:
Coding, syntax & commands
>>
>>Only the routines where the array is passed refer to that array. However, since the array is received in the UDF with PARAMETERS not LPARAMETERS and the name is kept the same, any called routines would also be accessing the passed array, yes?
>>
>>I would prefer to change all calls to stop using DO and clearly specify how things are being passed. However, I can't quickly be sure that all arrays are passed to the functions.
>>
>>It is more wrong to have inconsistent architecture (than inconsistent style). By that I mean part of the code refers to different pseudo-public private arrays while these parts are passing the array. So I'll document that the array needn't have been passed and what change should be made.
>
>Mike,
>make sure that the UDF is *always* called with *that* array as a parameter. What I once inherited was that in ONE makroexpanded call another array was passed, which from then on shadowed the previous private array until the UDF returned. Since it was inside a step-wise built macro, my search across the code had not found it. One of the times I asked for a sandbag to work off my anger...
>
Thanks for the suggestion.
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