Home RAP
New Blog Posts: Merging Reports - Part 1 and Part 2

Create Declarations in Code

edited March 2003 in RAP
I dynamically create reports and also wish to create some RAP functions
dynamically. I have seen the sample using raGetCodeModule(report)
unfortunately upon implementing this it is returning a big fat nil to me.
Closer invetigation shows that the CodeModule property, available only
through the run time inspector is also set to nil on my object, yet not on
the sample you have provided. My guess is that I will have to initialise the
CodeNodule in some way, but how exactly. Also I notice at the end of the
sample provided the referenced code module is reassigned to the report using

lCodeModule.GlobalCreateProgram := lGlobalCreateProgram;

I however am using the

CreateEventHandler() method, so how do i reassign my code module once fully
created.

Also is there any further documentation on the objects provided for RAP as
this information is scarcely touched upon in the help files.

--
Regards

Conrad Rowlands
Callards Technology Ltd

Comments

This discussion has been closed.