Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
var.list
106 bytes added
,
14:07, 1 June 2011
no edit summary
Line 9:
Line 9:
var.'''list()'''<br> returns a table with variable with variable names.
var.'''list()'''<br> returns a table with variable with variable names.
−
==
Example ==
+
<h2>
Example
</h2>
−
+
<p><span class="fck_mw_source" _fck_mw_customtag
=
"true" _fck_mw_tagname
=
"
source
"
lang="lua">
fckLRfunction
on.paint(gc)
fckLR
variables = var.list()
fckLR
for i=1, table.getn(variables)
dofckLR
gc:drawString(variables[i], 10, 10*i-10,
"
top
"
)
fckLR endfckLRendfckLR</span>
−
<
source lang="lua">
--Clipboard test
+
</
p><p
>This code retrieves the variable names and then prints them on the screen.
−
+
</p>
−
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 ==
== See also ==
Jimbauwens
68
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version