How can I do this, is there a way to identify if the row is an even number
or a odd number?
Thanks
<Vidhi> wrote in message news:#Hx6VS1EDHA.62@forums-1-dub...
Long ll_LineColorEven,ll_LineColorOneven
String ls_Modify="",ls_Result
//n_cst_color lnv_color
is_LineColorEven=ProfileString(gnv_app.of_GetAppIniFile(),'LineColor','Even'
,"<DEF>")
if(is_LineColorEven="")then is_LineColorEven="<BG>"
is_LineColorOnEven=ProfileString(gnv_app.of_GetAppIniFile(),'LineColor','Odd
',"<DEF>")
if(is_LineColorOnEven="")then is_LineColorOnEven="<BG>"
choose case is_LineColorEven
case "<DEF>"
ll_LineColorEven = long(Describe("DataWindow.detail.Color"))
case "<BG>"
ll_LineColorEven = long(Describe("DataWindow.detail.Color"))
case else
ll_LineColorEven = long(is_LineColorEven)
end choose
choose case is_LineColorOnEven
case "<DEF>"
ll_LineColorOnEven = rgb(210,210,210)
case "<BG>"
ll_LineColorOnEven = long(Describe("DataWindow.detail.Color"))
case else
ll_LineColorOnEven = long(is_LineColorOnEven)
end choose
//ll_LineColorEven = long(Describe("DataWindow.detail.Color"))
//gnvo_appl.invo_ColorStyles.il_WindowBackground
//ll_LineColorOnEven = rgb(210,210,210) //lnv_color.CYAN
//gnvo_appl.invo_ColorStyles.il_ButtonFace //LIGHT_GRAY
if ab_enabled then
ls_modify = "DataWindow.Detail.Color=
'0~tif(mod(GetRow(),2 )=0,"+String(ll_LineColorEven)+","+String(ll_LineColor
Oneven)+")'"
else
ls_modify = "DataWindow.Detail.Color=
'0~tif(mod(GetRow(),2 )=0,"+String(ll_LineColorEven)+","+String(ll_LineColor
Even)+")'"
end if
ls_result = Modify(ls_modify)
return 1
<Vidhi> wrote in message news:#Hx6VS1EDHA.62@forums-1-dub...
Then set an expression (using Modify() or using the dw-painter) for the
background.color property on all dw-controls: background.color=
'f_getrowcolour(getrow()) '
Ben
<Vidhi> wrote in message news:#Hx6VS1EDHA.62@forums-1-dub...
--
Paul Horan[TeamSybase]
VCI Springfield, MA
www.vcisolutions.com
Join the PB9 Book mailing list!
www.pb9book.com
"bede" <be...@sofico.be> wrote in message
news:uaOs#D6EDHA.222@forums-2-dub...
"Paul Horan[TeamSybase]" <paulhATvcisolutionsDOTcom> wrote in message
news:u$H60N9EDHA.284@forums-2-dub...
--
Chris Werner
<dw-extreme> schrieb im Newsbeitrag
news:FBBD9C4F97343451004EDEAA85256D1F.005EFC3F85256D1E@webforums...
> Put a large empty text field or rectangle in your detail area. In the
> background color expression put the following expression:
>
> IF(MOD(getrow(),1)= 1,16777215,0)
>
> to alternate between black and white. Modify the colors '16777215,0' to
> the colors you want.
Tyler
"Tyler Craft" <tyler...@gnb.caNo_Spam_Please> wrote in message
news:Okty6xLFDHA.331@forums-1-dub...
> If you are doing new development this may be an alternative.
>
> In the application open load a table called system_colors.
> ID COLOR_NAME COLOR_VALUE
>
> in the sql for the datawindows add the extra columns as column selects.
>
> So you would have
>
> Select <normal_part>,
> (select COLOR_VALUE from system_colors where COLOR_NAME = 'ButtonFace') as
> c_buttonface,
> (select COLOR_VALUE from system_colors where COLOR_NAME =
> 'SystemBackground') as c_sysBackground
>
>
> Just an idea, (WARNING I HAVE NOT TESTED THIS)
> Tyler
>
> "Connie Susut" <csu...@radss.com> wrote in message
> news:OPQvmsLFDHA.62@forums-1-dub...
> > It absolutely drive me crazy when debugging, but we are using ButtonFace
> and
> > WindowsBackground colors in our app, and I haven't had time to look at
> > changing away from the old global functions. Anyone with suggestions on
> how
> > I can still use the Windows colors without global functions?
> >
> > "Glenn Barber" <GABa...@msn.com> wrote in message
> > news:uvl#E8AFDHA.62@forums-1-dub...
"Tyler Craft" <tyler...@gnb.caNo_Spam_Please> wrote in message
news:Okty6xLFDHA.331@forums-1-dub...
> If you are doing new development this may be an alternative.
>
> In the application open load a table called system_colors.
> ID COLOR_NAME COLOR_VALUE
>
> in the sql for the datawindows add the extra columns as column selects.
>
> So you would have
>
> Select <normal_part>,
> (select COLOR_VALUE from system_colors where COLOR_NAME = 'ButtonFace') as
> c_buttonface,
> (select COLOR_VALUE from system_colors where COLOR_NAME =
> 'SystemBackground') as c_sysBackground
>
>
> Just an idea, (WARNING I HAVE NOT TESTED THIS)
> Tyler
>
> "Connie Susut" <csu...@radss.com> wrote in message
> news:OPQvmsLFDHA.62@forums-1-dub...
> > It absolutely drive me crazy when debugging, but we are using ButtonFace
> and
> > WindowsBackground colors in our app, and I haven't had time to look at
> > changing away from the old global functions. Anyone with suggestions on
> how
> > I can still use the Windows colors without global functions?
> >
> > "Glenn Barber" <GABa...@msn.com> wrote in message
> > news:uvl#E8AFDHA.62@forums-1-dub...
"Glenn Barber" <GABa...@msn.com> wrote in message
news:uvl#E8AFDHA.62@forums-1-dub...
In the application open load a table called system_colors.
ID COLOR_NAME COLOR_VALUE
in the sql for the datawindows add the extra columns as column selects.
So you would have
Select <normal_part>,
(select COLOR_VALUE from system_colors where COLOR_NAME = 'ButtonFace') as
c_buttonface,
(select COLOR_VALUE from system_colors where COLOR_NAME =
'SystemBackground') as c_sysBackground
Just an idea, (WARNING I HAVE NOT TESTED THIS)
Tyler
"Connie Susut" <csu...@radss.com> wrote in message
news:OPQvmsLFDHA.62@forums-1-dub...
Tyler
"Connie Susut" <csu...@radss.com> wrote in message
news:ekNQV3LFDHA.62@forums-1-dub...