callScript

Syntax callScript (name, paramlist, adrContext = nil)

Params name is a string representing the address of a script to be called

paramlist is a list containing the parameters to be passed to the script.

adrContext is the optional address of a table to be used as the context to run the script in.

Action executes the script stored at the address specified by name, passing it the parameter values provided in paramlist.

Returns The value returned by the script.

Notes Currently, named parameters are not supported by this verb.

All values in the context table, if provided, are global to script being called.

All errors thrown from the called script can be caught in a caller's try statement.

See Also evaluate

thread.evaluate

thread.easyCall

thread.callScript

Discuss