Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

how to set detail band visibility false

edited April 2005 in General
if memo field in detail band is blank, how can i do detail band invisible.

Comments

  • edited April 2005
    ALÝ ÇELÝK a écrit :
    By program or in the report designer ?
  • edited April 2005
    via fuction in reportdesigners

    Example:
    procedure DetailsBeforeGenerate;
    begin
    if length(view0['accfullname'])< 2 then detail.visible:=false
    else detail.visible:=true;

    end;

    this procedure does not work



    Best Regards..

    Ali ?ELIK

    "Marc Pleysier - Solune Informatique" , haber iletisinde
    sunlari yazdi:4250db1a@dm500....
  • edited April 2005
    I use :

    if ppBDEPipeLine.DataSource.DataSet.FieldByName('MyMemo').asString=''
    then ...


    ALI ÇELIK a écrit :
  • edited April 2005
    Hello

    what is the problem with my example??

    Ali ?ELIK

    "Marc Pleysier - Solune Informatique" , haber iletisinde
    sunlari yazdi:425132e1@dm500....
  • edited April 2005
    Hi Ali,

    If you trace into your example code, what is the value of the length of the
    "accfullname" returning as? Try moving your code to the
    DetailBand.BeforePrint and seeing if that helps.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.