Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Variables inside and outside a UDF global variables local variables
You can pass arrays to user-defined functions, and you can return arrays with the Return command.When you pass an array name (ie, not an array element) as a parameter to a function, the array gets passed "by reference". That is, the function receives a pointer to the array, and is therefore able to make changes to it "in place".
In contrast, passing an array element (ie, with a subscript) to a function is like passing a regular string or integer parameter to a function -- it gets passed "by value". Ie, the function receives the value of the array element, but is not able to modify the array itself.
Article ID: W15329
File Created: 2002:09:05:13:51:20
Last Updated: 2002:09:05:13:51:20