Same name used for multiple instances of an object in id block

Report bugs. Post bug workarounds or fixes

Moderator: MSandro

Post Reply
MrSteve
Posts: 61
Joined: Jun 16th, '16, 01:22

Same name used for multiple instances of an object in id block

Post by MrSteve » Jun 30th, '16, 20:39

To create issue:
1) Open project Widgets -> DragNDropList
2) enter developer mode
3) Shift-<Right Click> on any instance of Person
4) click on the id block
5) repeat steps 3 & 4 for a different instance of Person

You will see that both ID blocks have the same display text "<Person>" yet refer to different instances. I confirmed they refer to different instances by dropping them into block Structure -> add part

Using explore I see each instance has a different 'n' value, so I am guessing I could somehow refer to them using that. I could use an instance variable to to add special behavior to specific instances.

Done on Mac using GP-alpha-050

MrSteve
Posts: 61
Joined: Jun 16th, '16, 01:22

Re: Same name used for multiple instances of an object in id block

Post by MrSteve » Jul 2nd, '16, 03:54

Okay I found "Naming instances globally?" entry in Requests viewtopic.php?f=13&t=38&sid=0f88e5af071 ... 213b5f86d5

So this is a duplicate of that. I like the idea of "name this instance"

Post Reply