Book a Demo

Author Topic: ActivateDiagram should return result  (Read 3062 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
ActivateDiagram should return result
« on: November 24, 2010, 02:00:55 pm »
As discussed in: How to detect an already open diagram
ActivateDiagram should not open a diagram that isn't already open.

And this is, in fact, the case.

However, it should return at a result indicating whether the diagram was able to be activated or not.  This would allow a simple test of whether a diagram is already open or not.

If it returned the same result as IsTabOpen, it would provide the most information - but even a simple boolean would be beneficial.

Even GetLastError()is silent on the matter - even if the diagram was NOT open.

NOTE: IsTab open is not sufficient to uniquely identify the diagram (as discussed in the Forum reference above)

Reported,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!