How To…Modify RAP Programs in Code

Question

“How do I modify existing RAP code without using the code workspace (i.e. in Delphi code)?”

Solution

Use the raGetCodeModule() routine to gain access to the code module object then loop through each program and global program using the Programs and AllGlobalPrograms lists.

Access the actual RAP code using the TraProgram.Source property.

Download: RAPModifyPrograms.zip

Sample Delphi code: