Book a Demo

Author Topic: Delphi Generated Code  (Read 3288 times)

rasflp

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Delphi Generated Code
« on: February 11, 2003, 05:35:49 am »
I´m working in a project that use MDA architecture, through EA, Delphi and Bold (for relational persistence).

Now I´m trying to generate Delphi code with EA, then I have some questions.  ???

- Is there a way to generate DFM format files with EA;

- When I generate code, the scope clausules (private, protected, public and so on) is written with wrong alignment. Can I fix it ?

- If "automation object" is actually the only way to customize the EA code generator, where I can found AE documentation about this ?

[]´s
« Last Edit: February 11, 2003, 05:36:46 am by rasflp »

dfuller

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Delphi Generated Code
« Reply #1 on: February 16, 2003, 02:24:34 am »
Hi,

 Like most modeling tools, EA cannot generate DFM's because DFM's are not really an "artifact" of code.  Simply put, the DFM is a database (very loosely termed) of property settings for the instances of the components contained on forms and datamodules.

  To fix the scope clauses, try using DelFor which is by far the best code formatter for Delphi.  Google is your friend.

 Yes, the automation object is currently the only way to get access to EA.  You could go directly against the database, however, I do not recommend this.   With regards to the function of the automation, I'm not sure its possible to customize the code generation.  Though, I'm sure you can use the automation to write your own generator.  Again, I'm not sure this is very useful to you at this point.

Thanks,
Dave