Recent

Author Topic: Lazreport script  (Read 6097 times)

Nicola Gorlandi

  • Full Member
  • ***
  • Posts: 132
Lazreport script
« on: April 21, 2016, 07:30:06 am »
I am using script to hide show content. This expression
If [[Ar__tipo]='m'] then text:= '';
ELSE TEXT:=[CODUNI];
I'm a master data band does not work properly
In each rows print '' even if the ar__tipo for
The row is different from m.
Is it a bug or I made some mistake in script ?
Thank you

alexs75

  • Full Member
  • ***
  • Posts: 112
Re: Lazreport script
« Reply #1 on: April 21, 2016, 09:23:16 am »
Code: Pascal  [Select][+][-]
  1. If [[Ar__tipo]='m'] then text:= '';
  2.                                  ^^^
  3. ELSE TEXT:=[CODUNI];
  4.  
before else not type ;

Nicola Gorlandi

  • Full Member
  • ***
  • Posts: 132
Re: Lazreport script
« Reply #2 on: April 23, 2016, 09:11:14 am »
Thank you...
I need to have the same condition even for numeric field, how can I write it ? If I replace CODUNI with a numeric field Lazreport goes in error.

thank!

alexs75

  • Full Member
  • ***
  • Posts: 112
Re: Lazreport script
« Reply #3 on: April 25, 2016, 10:27:44 am »
Use convert function STR
Code: Pascal  [Select][+][-]
  1. If (Ar__tipo = 'm') then
  2.   text:= ''
  3. else
  4.   text:= STR(CODUNI);
  5.  

Nicola Gorlandi

  • Full Member
  • ***
  • Posts: 132
Re: Lazreport script
« Reply #4 on: April 30, 2016, 10:25:17 am »
Thank you.. seems it works on some control and for other not, I will evaluate the case

 

TinyPortal © 2005-2018