Access band's controls from script

A task: iterate via all band's child controls (all of them are TfrxMemoView) in Pascal script (master band before print) and change control's color depending on the value of the linked db field.

Actually there are 2 questions:

  1. Is there a way of accessing band's controls by variable name as it can be done for db fields(get function in the script)?
  2. How to loop via band's controls to get controls by index?

Doing this by explicit coding for each control looks quite clumsy since for this case it will be about ~50 controls for the band

Thanks

Comments

    1. Use TfrxBand.FindObject function
    2. Pass through TfrxBand.AllObjects list items

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.