From Inspired-Lua Wiki
Jump to: navigation, search

on.getSymbolList is an event fired when the script app symbol list is being serialized to the clipboard.
The script app returns a list of names of variables in the symbol table that it needs to copy with it to the clipboard.
The TI-Nspire™ system copies the names and values of the variables along with the script app. Then when the user pastes the script app in another problem, the system adds the companion variables to the problem symbol table.

Note : on.getSymbolList() is called when a page containing a script app is copied, but not when a problem containing a script app is copied. This is because the entire symbol table is copied when the problem is copied.
The example below indicates that it needs variable f1 to be copied with the app to the clipboard. The value of f1 will be added to the symbol table when it is pasted into another problem even in another TNS document.

This has been introduced in TI-Nspire OS 3.2 (Changes).


function on.getSymbolList()
    return {"f1"}