Book a Demo

Author Topic: Semicolon in loop condition in sequence diagrams  (Read 3566 times)

bart

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Semicolon in loop condition in sequence diagrams
« on: August 03, 2007, 03:29:54 pm »
Hi guys,

I'm writing an add-in for importing source code and changing it into sequence diagrams. I want to have for loop translated into loop Interaction Fragment with condition like [int i=0; i<10; i++]. For some reason when I set Partition name to string containing semicolon using Automation Interface, on the diagram it gets truncated to the part before first semicolon (ie. "int i=0"). It's perfectly fine to set it to a condition with semicolon by hand so it should work with AI as well...

Do you have any idea why it's happening and how to work around it? Or at least do you know where partition informations are stored? I couldn't find them anywhere in Access.

Thanks for any help

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Semicolon in loop condition in sequence diagra
« Reply #1 on: August 03, 2007, 10:32:18 pm »
Quote
Do you have any idea why it's happening

:-X

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

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Semicolon in loop condition in sequence diagra
« Reply #2 on: August 04, 2007, 05:00:02 am »
Have you experimented with 'escaping' the semicolon in any way? Perhaps a double semicolon. Check the various code generation or macro language documentation for hints.

If something does work, please let us know.
No, you can't have it!