Simple table in Labels.
Posted: Sun Jan 26, 2014 9:21 am
I apologize in advance for my ignorance however I looked and looked and something so simple seems to elude me.
How do I print, echo or display a simple table in a label?
I've tried this but it only displays the last key when the entire label is restarted:
I'd much rather use a label to display the table but if not, is there an easier way to display it via a miniconsole? I understand the selectCurrentLine, copy and append trick for copying things at the cursor in the main window but no idea how to append things from a stored table.
I also figured out a fancy way to do this with a Hbox but that way took up a ton of cpu processing time, was very bulky to work with and was generally sloppy. Anyways, again I thank you kind folks for any help you can provide. I normally try to find the answer on my own but sometimes these little things cause me to hit a wall.
How do I print, echo or display a simple table in a label?
I've tried this but it only displays the last key when the entire label is restarted:
Code: Select all
for i, v in ipairs(mytable) do
mylabel:echo(v)
end
I also figured out a fancy way to do this with a Hbox but that way took up a ton of cpu processing time, was very bulky to work with and was generally sloppy. Anyways, again I thank you kind folks for any help you can provide. I normally try to find the answer on my own but sometimes these little things cause me to hit a wall.