Book a Demo

Author Topic: How to write text to Output tab via Automation?  (Read 3640 times)

Denis S

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
How to write text to Output tab via Automation?
« on: April 12, 2010, 03:38:37 am »
Hi,

I tried subj but have no luck, unfortunately. I do see an output tab created by my call:

ra.CreateOutputTab('My codegen output');

but the next call to

ra.EnsureOutputVisible('My codegen output');

does not makes my tab current. The fallowing call

ra.WriteOutput('My codegen output', 'Output text', 1);

has no result at all: I don't see any text in my output tab. What should I do in order to write something to output?

Thanks, Denis.

Denis S

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: How to write text to Output tab via Automation
« Reply #1 on: April 12, 2010, 05:26:22 pm »
Resolved after I specified Output Tab name as a const:

private const string myGenTab = "My codegen output";

Looks like EA compares tab names via "==" comparision instead of "equals(...)"?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: How to write text to Output tab via Automation
« Reply #2 on: April 13, 2010, 08:33:22 am »
Quote
Looks like EA compares tab names via "==" comparision instead of "equals(...)"?
That would of be making assumptions about the language/framework EA is implemented in, which I won't comment on.
« Last Edit: April 13, 2010, 08:34:15 am by simonm »