Is it possible dynamically affecting, modifing or moving RAP code at Run Time (in Delphi code) ? For ex: In Var1.onPerint Begin If Var2.Caption = "YES" Then Var3.Caption = "OK"; End;
Yes, you can dynamically change RAP code at runtime. There are demos of creating RAP pass through functions dynamically in the installation. Here is a demo which moves a group header band event handler from one group to another in code. Thwe technique shows how to find an event handler and then how to modify it.
Comments
you can use pure Delphi in RAP by creating/using RAP pass-through functions.
(see RAP.hlp topic 'Adding Functions to the Code Toolbox')
regards,
Chris Ueberall;
creating RAP pass through functions dynamically in the installation. Here is
a demo which moves a group header band event handler from one group to
another in code. Thwe technique shows how to find an event handler and then
how to modify it.
http://www.digital-metaphors.com/tips/MoveGroupHeaderBeforePrint.zip
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com