Quantcast
Channel: Indigo Rose Software Forums - Forums
Viewing all articles
Browse latest Browse all 2105

Nested table initialization

$
0
0
Hello,

Suppose I want to initialize an array consisting of tables in the Setup Factory script.
Can I write something like:

required_fields = {
{ id = CTRL_EDIT_01, description = "Company Name" },
{ id = CTRL_EDIT_02, description = "First Name" },
{ id = CTRL_EDIT_04, description = "Last Name" }
};

and then, for instance, access an element as:

required_fields[ 2 ].id

?

Thanks

Viewing all articles
Browse latest Browse all 2105

Trending Articles