User can create Shared Blocks with same name in one project (v54)
Posted: Aug 1st, '16, 17:12
A user can create two different shared blocks with the same name in one project. This can lead to confusion when looking at code and trying to determine which method is called.
Similar issue occurs when creating a class with the same name, in this case GP auto-magically appends a digit to the end of the class name. I think I would prefer an Alert notifying the user of the naming conflict and giving them the option to rename, be curious as to what others think.
See attached project for example.
Also to ponder: How can you find where Shared Blocks are defined when there are multiple classes? You would need to find the class where the shared block was defined. Which is fine in most cases where small number of classes/scripts
V.54
Similar issue occurs when creating a class with the same name, in this case GP auto-magically appends a digit to the end of the class name. I think I would prefer an Alert notifying the user of the naming conflict and giving them the option to rename, be curious as to what others think.
See attached project for example.
Also to ponder: How can you find where Shared Blocks are defined when there are multiple classes? You would need to find the class where the shared block was defined. Which is fine in most cases where small number of classes/scripts
V.54