I'm probably doing something wrong, but do not know what:
in the script of card:
Code: Select all
function calcular h1,h2
return h1 + h2
end calcular
---------------------
on calcular h1,h2
put h1 + h2
end calcular
If I call these routines from the code of a button:
Code: Select all
on mouseup
put calcular (12,3)
end mouseup
Code: Select all
on mouseup
calcular 12,3
end mouseup
But If I call these routines from the message box:
Code: Select all
calcular 12,3
And:
Code: Select all
put calcular (12,3)
Message execution error:
Error description: Function: error in function handler
Hint: calcular
¿?¿?¿?