I been trying to get this macro to work but I can't seem to find the right syntax for calling a sub using parameters, here is the macro:
[CODE title="Code"]
Sub Main
/declare index int outer
/declare fruit[2] string outer
/varset fruit[1] orange
/varset fruit[2] apple
:loop
/for index 1 to 2
/echo ${fruit[${index}]}
/call chomp(${fruit[${index}]})
/delay 1s
/next index
/goto :loop
/return
Sub chomp(Param0)
/echo ${Param0}
/return[/CODE]
What am I missing?
[CODE title="Code"]
Sub Main
/declare index int outer
/declare fruit[2] string outer
/varset fruit[1] orange
/varset fruit[2] apple
:loop
/for index 1 to 2
/echo ${fruit[${index}]}
/call chomp(${fruit[${index}]})
/delay 1s
/next index
/goto :loop
/return
Sub chomp(Param0)
/echo ${Param0}
/return[/CODE]
What am I missing?


