Book a Demo

Author Topic: Delphi Code Generation  (Read 2738 times)

Jason Young

  • Guest
Delphi Code Generation
« on: December 09, 2002, 03:55:30 am »
I have several issues with the Delphi code generation in EA.

Firstly I would like to create more than one class per unit, this does not seem possible, the last class always overwrites the previous (even with overwrite option is turned off).

I would also like to create array properties, I have managed to do this using the Delphi Properties editor, but the systax is not really understood, and when the property editor is reopened the property string is interpreted incorrectly.

Delphi code (Borland Standard) always places an F in front of object datamembers (Fields) to indicate their scope, how can I do this in EA without renaming the attributes.

The default stanard for Delphi classes is to place a 'T' in front of the class name, i.e. Address becomes TAddress, I do not want to name my classes with a 'T' in the model, however, when generating to Delphi code I would like the 'T'.

And finally the generated code is not layed out in the standard way, the scope specifiers, i.e. Private, Protected, etc. should be lined up with the class declaration, i.e. the TAddress = class(TObject) line. All members (attributes/operations) should then be indented by one tab character.

If anyone can solve these issues for me I would be greatfull

Jason