Skip to main content

Report Controls

  • May 31, 2011
  • 1 reply
  • 0 views

[Migrated content. Thread originally posted on 26 May 2011]

Hello
Can you programmatically make a report control invisible?
This line of code in the program: modify report-label-1, visible = 0
Returns the error message: Program1.cbl, line 149: Undefined data item: report-label-1

Thanks

1 reply

Stephen Hjerpe
  • Participating Frequently
  • May 31, 2011

[Migrated content. Thread originally posted on 26 May 2011]

Hello
Can you programmatically make a report control invisible?
This line of code in the program: modify report-label-1, visible = 0
Returns the error message: Program1.cbl, line 149: Undefined data item: report-label-1

Thanks
No, the controls on the report designer are not like the controls on the screen designer. The screen designer will make working-storage and screen section entries, the screen section entries are handles and you can inquire and modify these. The report designer makes entries into the Procedure division - the inquire / modify will have no effect as the entries are all about what to send to the print buffer. Yiu may be able to make a condition where spaces are moved to the buffer, in effect, making the entry invisible.