WoWInterface - View Single Post - How print array?
View Single Post
12-31-20, 07:04 PM   #5
A Flamescale Wyrmkin
Walkerbo's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 139
Originally Posted by lungdesire View Post
mass = {"one", "two", "three"}

test = "mass"

for i, v in pairs(test) do

Why this code dont work and where error?
I am still learning about programming but I wonder is the problem that you have a local table named mass and then you have a local string "mass" named test.

So when you are trying to iterate through the string variable test it fails as test is not a table.

Vrul has provided the actual answer.
"As someone once told me, frames are just special types of tables, and tables are special types of pointers."

Last edited by Walkerbo : 12-31-20 at 07:11 PM.
  Reply With Quote