Handle error on function
Posted: Mon Feb 16, 2015 2:53 pm
I'm trying to write a function to enable or disable certain controls depending on whether it receives the parameter to true or false, but I get this error.
"stack "Calcolo Ferie - ROL - Monte Ore": execution error at line 2 (Handler: can't find handler) near "EnableDisableControl", char 1"
Where am I wrong?
Thanks
"stack "Calcolo Ferie - ROL - Monte Ore": execution error at line 2 (Handler: can't find handler) near "EnableDisableControl", char 1"
Where am I wrong?
Code: Select all
on openStack
EnableDisableControl true
##set the disabled of group "groupMainControls" to true
end openStack
function EnableDisableControl TrueFalse
if TrueFalse = true then
set the disabled of group "groupMainControls" to true
else
set the disabled of group "groupMainControls" to false
end if
end EnableDisableControl