Posted 24 July 2012 - 08:39 PM
Hi there
I hope i can explain my problem in english :)/>/>
I want to print a value, stored in a table.
But the place, where it's stored should base on a string.
Example:
Hope, you understand the most and can help me :o/>/>
Greetings
MetalMiner
I hope i can explain my problem in english :)/>/>
I want to print a value, stored in a table.
But the place, where it's stored should base on a string.
Example:
local actualLine = 1 --the line to print
local lines = { --all lines
line1 = {text = "exampletext1", length = 12},
line2 = {text = "exampletext2", length = 12},
}
s = "lines.line"..actualLine..".text"
print(???) -- no i want to print the value stored in the table, with the "adress" s
Hope, you understand the most and can help me :o/>/>
Greetings
MetalMiner