Func sayHello(ByRef $vars, $text) ReDim $vars[UBound($vars, 1)+1] $vars[UBound($vars, 1)-1] = "Hello from plugin " & $text EndFunc