Change the color of individual field in ax 2009 Report


public void executeSection()
{
int controlcount;
int counter;
int usecolor;
int oldcolor;
object reportobject;
;
controlcount=this.controlCount();
oldcolor=this.foregroundColor();
if(oldcolor==WinApi::RGB2int(255,255,255))
usecolor=WinApi::RGB2int(209,209,209);
else
usecolor=WinApi::RGB2int(255,255,255);
this.foregroundColor(usecolor);
for(counter=1;counter<=controlcount;counter++)
{
reportobject=this.controlNo(counter);
reportobject.backgroundColor(usecolor);
}
super();
}

No comments

DeepSeek-R1: The AI Revolution Everyone’s Talking About!

  In the ever-evolving world of artificial intelligence, a new player has emerged, challenging the giants and rewriting the rules of innovat...

Powered by Blogger.