Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

addInstance doesn't work when table has no rows

ramib_usa
Level 1
Level 1

I am trying to add a row to an empty table (no rows) and it seems that addInstance doesn't work.

table.row.instanceManager.addInstance(1);

Is there a different syntex if the table has no rows?

Thanks

1 Accepted Solution
Jono_Moore
Correct answer by
Level 10
Level 10

Try using the underscore shortcut for the instance manager, it lets you get at objects that don't exist yet.

So

table.row.instanceManager.addInstance(1);

becomes

table._row.addInstance(1);

View solution in original post

2 Replies
Jono_Moore
Correct answer by
Level 10
Level 10

Try using the underscore shortcut for the instance manager, it lets you get at objects that don't exist yet.

So

table.row.instanceManager.addInstance(1);

becomes

table._row.addInstance(1);

View solution in original post