Jump to content

dgs gridlist, tab


Lachuks

Recommended Posts

How to make columns, rows, tabs by looping stuff?
e.g.

Spoiler

local categories = {
	[1] = "something",
	[2] = "something2",
	[3] = "something3",
	[4] = "something4",
	[5] = "something5",
	[6] = "something6",
	[7] = "something7",
}
for i, cateName in ipairs(categories) do
  tab[i] = DGS:dgsCreateTab( cateName, tabCommands2 )
end

 

 

It says - attempt to index global 'tab' (a nil value)
Tried to do the same thing with
gui and it worked well

I'm idiota.... Had to add tab = {} at the top. ?

Edited by Emix
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...