--- In [email protected], "Wai" <chunwaih...@...> wrote:
>
> hello,
> 
> I would like to ask the question about the function.could it pass the 
> parameter to the function.For example,
> after Running the following script, my expected result is 12, but the real is 
> 0.
> What is the wrong.
> 
> function calc(a,b)
>       v = a*b
>       win.debug(v)
> quit
> 
> @calc(3,4)
>


You can call the calc function with calc(3,4) or ....@calc(3,4)

The script should be above the function. If a function is the first thing in 
the script, it is taken to be the script (which explains why you got zero).

Reply via email to