Page 1 of 1

DCBROWSE ZEBRA

Posted: Tue May 01, 2012 7:12 pm
by RDalzell
Roger,

When I add the lines to perform zebra colors, I receive a "Parameter has the wrong data type" error at
DC_XBROWSE:ZEBRACOLOR(1873)

Code: Select all

 
LOCAL aEvenRowColor := {GRA_CLR_BLACK,GraMakeRGBColor({255,255,170})}
LOCAL aOddRowColor  := {GRA_CLR_BLACK,GraMakeRGBColor({159,231,176})}

DCBROWSE ...
ZEBRA aEvenRowColor, aOddRowColor ;
I have compiled your example and it works fine, unknown what I have missed.

Thanks,
Rick

Re: DCBROWSE ZEBRA

Posted: Wed May 02, 2012 12:54 am
by c-tec
Hi,
I use it this way:

Code: Select all

ZEBRA {|lEven|zebra(lEven)}

Function Zebra(lEven)
******************************************************************
if lEven
  return {GRA_CLR_BLACK,GraMakeRGBColor({255,255,255})}
endif
return {GRA_CLR_BLACK,GraMakeRGBColor({220,240,250})}
regards
Rudolf

Re: DCBROWSE ZEBRA

Posted: Wed May 02, 2012 4:15 am
by RDalzell
How is the value of lEven changed?
I thought it was somewhere within Roger's function

Re: DCBROWSE ZEBRA

Posted: Fri May 04, 2012 1:59 am
by c-tec
Hello, the option ZEBRA of DCBROWSE does this
regards
Rudolf