Changes

Jump to navigation Jump to search

var.list

693 bytes added, 12:06, 1 June 2011
Created page with "var.'''list''' is a function that is part of the Var Library. <br> The function returns a table with all the names of variables currently defined in the document.<br> ..."
var.'''list'''&nbsp;is a function that is part of the Var Library.

<br>

The function returns a table with all the names of variables currently defined in the document.<br>

== Syntax ==

var.'''list()'''<br> returns a table with variable with variable names.

== Example ==

<source lang="lua">--Clipboard test

function on.paint(gc)
variables = var.list()
for i=1, table.getn(variables) do
gc:drawString(variables[i], 10, 10*i-10, "top")
end
end
</source>

This code retrieves the variable names and then prints them on the screen.

== See also ==

*[[var.recall]]<br>
*[[var.recallstr]]<br>
*[[var.store]]<br>
*[[var.monitor]]<br>
*[[var.unmonitor]]<br>

[[Category:var]]
68

edits

Navigation menu