Lazarus

Programming => Packages and Libraries => LazReport => Topic started by: derles on August 13, 2020, 12:33:20 am

Title: (SOLVED) Modify Master Data band height where some field is empty
Post by: derles on August 13, 2020, 12:33:20 am
Hello. I have this report I build with LazReport.
In Master Data band I have 5 memos to show some dataset fields. Four of them are horizontally side by side, and the last one (field s_remarks) is below de first four, as you can see in the fig 1.
In this 5th field, s_remarks, sometimes is empty (not null, but empty string).
Running the report, the result I have is the fig.2, with empty spaces where s_remarks has no data.
I need the result like in fig.3, without empty space where s_remarks is empty string.
Is this even posibe? How can I do it ?
Please help !
Title: Re: (SOLVED) Modify Master Data band height where some field is empty
Post by: derles on August 13, 2020, 02:51:53 pm
Finally I find the way. 8-)
In the MasterData1.Script:

Code: Pascal  [Select][+][-]
  1. IF ([zqDet."s_remarks"] = '') THEN
  2.    MasterData1.Height := 19
  3. ELSE
  4.    MasterData1.Height := 36;
  5.  

that do the trick.
TinyPortal © 2005-2018