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
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
Comment