change childband on the fly

Hi,
I need to change the childBand depending on a condition gived by:

i tried on event onBeforePrint of my band that code:

if query.eof then
band.childband := child1
else
band.childband := child2


but it does not recognize "query.eof"

how can i do this?


thanks for all


I using FR253 with D7

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.