Added function to create a string from a table

This commit is contained in:
2021-06-30 17:46:07 -04:00
parent e5f9a26dc6
commit 41d591a69b
2 changed files with 65 additions and 0 deletions

View File

@@ -406,3 +406,16 @@ function toBin(num)
end
return binNum;
end
--Print a table
function printTable(ary)
local tableString = "[";
for cnt = 1, #ary do
tableString = tableString .. tostring(ary[cnt]);
if(cnt < #ary) then
tableString = tableString .. ", ";
end
end
tableString = tableString .. "]";
return tableString;
end