How To…Find Components With RAP Code

Question

“How do I determine if the report components have RAP code associated with them?”

Solution

Gain access to the TraCodeModule object using the raGetCodeModule routine, then loop through each program in the Programs list.  Use the TraProgram.Component.Name property to determine which components have RAP code associated with them.

Download: ComponentsWithRAPCode.zip

Sample Delphi code: