Normal Topic Reports With Alternating Color Rows (Read 408 times)
BWETTLAUFER
Full Member
***
Offline



Posts: 216
Location: Cambridge, Ontario
Joined: Apr 9th, 2010
Reports With Alternating Color Rows
Aug 30th, 2016 at 8:02pm
Print Post Print Post  
Hey folks,

If I wanted to have a report alternate the background color of rows, how would I go about this, specifically counting whether a row I was on was 'even' or 'odd'.

Thanks!
Blair
  
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Reports With Alternating Color Rows
Reply #1 - Sep 1st, 2016 at 4:03pm
Print Post Print Post  
Hello Blair,

If you keep a global count, you can check if it's even or odd by using @Mod(). Something like:

Code
Select All
vResult = @Mod(gsCount, 2)
If vResult = 0 Then
{
//Even
}
Else
{
//Odd
} 



-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged