Access RAP events code in Delphi as text
If I want to find values in RB I can iterate through the objects and get their property values. Nice.
But can I iterate through the events, or just the events for a band, and retrieve in delphi the RAP pascal as text? Or even just retrieve the code for particular event. I want to parse the source code and pick up references to pipes and fields. Currently I have to use the saved report as text or do an obj2text and then parse the text.
Even better, can I just retrieve the access to pipename['field'] statements?
Lawrence
But can I iterate through the events, or just the events for a band, and retrieve in delphi the RAP pascal as text? Or even just retrieve the code for particular event. I want to parse the source code and pick up references to pipes and fields. Currently I have to use the saved report as text or do an obj2text and then parse the text.
Even better, can I just retrieve the access to pipename['field'] statements?
Lawrence
Comments
Take a look at the following article on how to modify RAP programs in code. The same concept could be used to loop though each RAP event and check values.
https://rbwiki.digital-metaphors.com/rap/fundamentals-rap/how-to-modify-rap-programs-in-code/
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com