Can I pass an array as a parameter to a function? - Printable Version +- Ewon Technical Forum (https://techforum.ewon.biz) +-- Forum: Development (https://techforum.ewon.biz/forum-50.html) +--- Forum: BASIC Script (https://techforum.ewon.biz/forum-52.html) +--- Thread: Can I pass an array as a parameter to a function? (/thread-2747.html) |
Can I pass an array as a parameter to a function? - Andy Hardy - 15-05-2025 Hello hivemind. I want to write a function that takes an array of 6 real values, moves the data in the array down 1 place (like a stack) then adds a new real value to the top of the stack (position 1). I want to pass the name of the array variable and the tag name of the new data to the function, then have the function update the array. I have tried to create a dummy array and declared that as a variable in the definition, and the actual array name in the function call but it keeps returning "invalid parameter". Is it possible to pass an array to a function? Thanks And |