Objects should not be duplicated (same name and same type)


    This rule states that objects should not be duplicated within the PowerBuilder code. This means that objects should not have the same name and type within the code. Duplicating objects can lead to confusion and errors, as the code may not be able to distinguish between the two objects. To avoid this, objects should be given unique names and types to ensure that the code runs correctly and that the objects are distinguishable from one another.

Key Benefits

  • Ensures data integrity: Prevents data from being corrupted or lost due to two objects having the same name and type.
  • Maintains data consistency: Ensures that data is consistent across all objects with the same name and type.
  • Improves performance: Reduces the amount of unnecessary data stored in memory, which can improve system performance.


Visual Expert 2024