How to create declarations in code
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
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
This discussion has been closed.
Comments
Try downloading these examples:
http://www.digital-metaphors.com/tips/RAPCreateGlobalVar.zip
http://www.digital-metaphors.com/tips/RAPCreateGlobalProc.zip
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
By the way, is there any page where I could browse the existing tip files?
Sorry, but we do not have anything available that you can browse, it is on
our 'to do' list for the future...
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com