Not really what Albert suggest you3iff wrote:I never thought of that. It works (unfortunately the function is in runaway mode as I can't stop it reprocessing the function...)
It would have also helped had I used square brackets in one place, numberlist[] not numberlist() !!
Thanks.
To get a value back from the function I needed to use:
j = functionname(numberlist,jj) and a return j; in the function. (of course you knew that...)
It finally does what I need. Hooray! (I hope)
Code: Select all
function other(members) { members.push("four!"); }
function that() { local memberlist = ["one", "two", "three"]; print("size: "+memberlist.len()); other(memberlist); print("size: "+memberlist.len()); }