here is the code:
function displayArray(ARRAY)
local list = ""
for i=1, #[ARRAY] do -- this line is the problem, i need to get an array length of an array as a passed string
if (i == 1) then
list = (list..[ARRAY][i])
else
list = (list..", "..[ARRAY][i])
end
end
return list
end
NameOfArray = {"dog", "cat", "fish", "something more pointless"}
print(displayArray("NameOfArray"))
I have tried table.getn(t) but it keeps moaning about it being a string and not a table












