ListVars

Displays the script's variables: their names and current contents.

ListVars

Remarks

This function is equivalent to selecting the "View->Variables" menu item in the main window. It can help you debug a script.

For each variable in the list, the variable's name and contents are shown, along with other information depending on what the variable contains. Each item is terminated with a carriage return and newline (`r`n), but may span multiple lines if the variable contains `r`n.

List items may take the following forms (where words in italics are placeholders):

VarName[Length of Capacity]: String
VarName: TypeName object {Info}
VarName: Number

Capacity is the variable's current capacity.

String is the first 60 characters of the variable's string value.

Info depends on the type of object, but is currently very limited.

If ListVars is used inside a function, the following are listed:

Related

KeyHistory, ListHotkeys, ListLines

The DebugVars script can be used to inspect and change the contents of variables and objects.

Examples

#1

var1 := "foo"
var2 := "bar"
obj := []
ListVars
Pause