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
BedrockMission!

Learn More

View all

Sign in to view all badges

add instance when initial count=0

Avatar

Avatar
Level 6
neptas
Level 6

Likes

0 likes

Total Posts

259 posts

Correct Reply

0 solutions
View profile

Avatar
Level 6
neptas
Level 6

Likes

0 likes

Total Posts

259 posts

Correct Reply

0 solutions
View profile
neptas
Level 6

22-10-2008

Hello,



Can someone tellme how to dynamically add an instance of a section, when that section as at design time a initial count of zero?



just doing: objectsection.instanceManager.addInstance (1);

doesn´t work.



Thank you

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

22-10-2008

If the object does not exist yet then the addInstance method will not work (as you have found out). There is a syntax that allows for this buy using:



_objectsection.addInstance(1)



The underscore (_) indicates that you want to communicate with the instanceManager.