Lingo Dictionary > G-K > handler() |
![]() ![]() ![]() |
handler()
Syntax
scriptObject
.handler(#handlerSymbol
)
Description
This function returns TRUE
if the given script
Object
contains a handler whose name is #handlerSymbol
, and FALSE
if it does not. The script object must be a parent script, a child object, or a behavior.
Example
This Lingo code invokes a handler on an object only if that handler exists:
if spiderObject.handler(#pounce) = TRUE then spiderObject.pounce() end if
See also
handlers(), new(), rawNew(), script
![]() ![]() ![]() |