Home RAP

How to create declarations in code

edited February 2003 in RAP
Hi

How can I create declarations from Delphi-code. I would like to create this
code:

var
TopReport: TTopReport;

in global declarations

and

TopReport := GetTopReport;

in global initialization.

The idea behind this is that I have a global Delphi TTopReport object that I
use for different things. I use it always, so it would be great for me to be
able to incorporate these lines into all the reports I create in the
designer. I know, how to hook into the designer, but do not know how to
create these lines. It differs from creating event codes.

Thanx

Feri

Comments

This discussion has been closed.