Skip to content

Latest commit

 

History

History
executable file
·
32 lines (22 loc) · 457 Bytes

File metadata and controls

executable file
·
32 lines (22 loc) · 457 Bytes

table

scrW,scrH = System:screenSize();
label = Label();
label:frame(0,0,scrW,scrH-64);
label:lineCount(100);

function myprint( s , s2 )
	s = s .. tostring(s2)
	print(s);
	local text = label:text();
	if( text ) then
		label:text( text .. "\n" .. s);
	else
		label:text( s);
	end
end



local t = {"alpha", "beta", "gamma"}
myprint(table.concat(t,":"))

myprint(table.concat(t, nil, 1, 2))

myprint(table.concat(t, "\n", 2, 3))

myprint(#t);