DCBROWSE ZEBRA

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
RDalzell
Posts: 205
Joined: Thu Jan 28, 2010 6:57 am
Location: Alsip, Illinois USA

DCBROWSE ZEBRA

#1 Post 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

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: DCBROWSE ZEBRA

#2 Post 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
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

User avatar
RDalzell
Posts: 205
Joined: Thu Jan 28, 2010 6:57 am
Location: Alsip, Illinois USA

Re: DCBROWSE ZEBRA

#3 Post by RDalzell »

How is the value of lEven changed?
I thought it was somewhere within Roger's function

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: DCBROWSE ZEBRA

#4 Post by c-tec »

Hello, the option ZEBRA of DCBROWSE does this
regards
Rudolf
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

Post Reply