HSL Error Trapping Functions

From HEWIKI
(Redirected from CallMethodPostEvent)
Jump to: navigation, search

These are external functions on both the client and server, which provide ways to invoke script as separate events. This is primarily useful to prevent a runtime "script error" from stopping other important script operations.

Contents

CallMethod

CallMethod(meNode as NodeRef, methodName as String, data as NodeRef) as Boolean

Synchronously calls a method, returning true if the call ran to completion, or false if there was an error. More expensive than directly calling a method with node.methodName

CallMethodPostEvent

CallMethodPostEvent(meNode as NodeRef, methodName as String, data as NodeRef)

Like CallMethod but is a bit more efficient. Asynchronously calls a method after the current script is finished running. With CallMethodPostEvent, the node, method, and argument are saved until the call into script is done.

CallMethodIfPresent

CallMethodIfPresent(meNode as NodeRef, methodName as String, data as NodeRef) as Boolean

Like CallMethod but does not error if the method does not exist

See also

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox