Author Topic: global variable in code templates  (Read 529 times)

Computechnic

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
global variable in code templates
« on: January 07, 2014, 09:44:45 pm »
hello

We modified the template to create code in our defined Codestyle. Now I'm trying to create a "global" variable which should be usable in a global scope over all templates (at least two). This is used to write a marker for each scope in the source file. I would set a "FirstPublic" variable to true before iterating over all operations. In the operation template I would like to test the scope and this variable. Is it the first public operation the output will be done and the variable will be set to false.
Is there a way to do something like this?

Thanks for your help.

Regards

Simon M

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6453
  • Karma: +55/-6
    • View Profile
Re: global variable in code templates
« Reply #1 on: January 13, 2014, 09:23:50 am »
There is no way to have variables across multiple templates.
Simon

support@sparxsystems.com