thread.callScript
| Syntax |
thread.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 |
Calls the script with the specified parameters in a newly-created thread.
|
| Returns |
True.
|
| Examples |
thread.callScript ("dialog.threeway", {"Pick a word!", "oh", "the", "buzz"}) » true
|
| Notes |
There is no way to directly determine the value returned by the called script. Currently, named parameters are not supported by this verb. All values in the context table, if provided, are global to script being called. For this purpose, a copy of the context table is passed on to the new thread. This verb is new in Frontier 6.1. You can use it as a more robust replacement for thread.easyCall.
|
| See Also |
callScript
|