Difference between revisions of "Typescript"
Line 19: | Line 19: | ||
== See Also == | == See Also == | ||
− | * [[ | + | * [[Commands]] |
* [[Inspection Commands]] | * [[Inspection Commands]] | ||
* [[User Interface Typescript Commands]] | * [[User Interface Typescript Commands]] | ||
Line 28: | Line 28: | ||
* [[Analytica Script]] | * [[Analytica Script]] | ||
* [[EvaluateScript]] | * [[EvaluateScript]] | ||
+ | * [[Buttons]] |
Revision as of 18:36, 5 April 2016
Typescript is a variant of the Analytica language of occasional value to advanced users. It contains a few commands that do things not (yet) available in system functions. Typescript has a simple syntax, usually just a command, and zero or more parameters, separated by spaces. Useful commands include:
Profile x
: Displays all the attributes of object x, include some obscure internal attributes not normally visible in the Analytica user interface.
Open Diagram x
: Opens the Diagram window containing object x. You can also open the Object, Result, Graph, Table window for the object.
BrowseModeOn
: switches to Browse mode form Edit or Arrow mode.
You can use Typescript in these contexts:
- Typescript window lets you interact with Analytica by typing commands, like the
CMD
in Windows or a Unix shell script. You open the Typescript window by pressing Ctrl+' (Control + single quote) or F12 (Function Key 12). When you type a command into the Typescript, Analytica executes it as soon as you type return. It prints the results as text in the same window:
- EvaluateScript(t) is a function that can be used in any Analytica expression. Its parameter «t» is a text which may include any typescript command. Use with caution!
- Button Scripts. The Script attribute of a Button is obsolete, now replaced by the OnClick attribute for Buttons and OnChange attribute for Variables.
See Also
Comments
Enable comment auto-refresher