How to share the same script code

I have some bands that need the same script FR code for its events OnBeforePrint.

How can I share the same event OnBeforePrint for several bands?

And other question: I have some "code pieces" in FR script and I want to executes them from different OnBeforePrint Bands,

For avoiding the famous Cut/Paste, How can I create functions in FR script (Not external functions) ?????

Help Please,

Thanksssss

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 6:16PM
    Unfortunately the obp event belongs to each object and you have to write code
    in the event for each band.
    You can create your own function libray to be available to fr. for a good example of how to do this look at the added functions lib from the power pack.
    regards ;)

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.