8. April 2010 15:15
8. April 2010 15:29
8. April 2010 15:36
IF "New Overhead Rate" > "Overhead Rate" THEN StatusColorChange('green');
IF "New Overhead Rate" < "Overhead Rate" THEN StatusColorChange('red');
StatusColorChange(color : Text[10])
loc_color := color;
IF loc_color = 'red' THEN CurrForm."New Standard Cost".UPDATEFORECOLOR(255);
IF loc_color = 'green' THEN CurrForm."New Standard Cost".UPDATEFORECOLOR(65280);
IF loc_color = 'black' THEN CurrForm."New Standard Cost".UPDATEFORECOLOR(0);
8. April 2010 15:45
Sebastian Pfliegel hat geschrieben:Versuch doch mal deinen Code im onFormat-Trigger auszuführen ;)
8. April 2010 15:52
New Overhead Rate - OnFormat(VAR Text : Text[1024];)
IF "New Overhead Rate" > "Overhead Rate" THEN CurrForm."New Standard Cost".UPDATEFORECOLOR(255);
IF "New Overhead Rate" < "Overhead Rate" THEN CurrForm."New Standard Cost".UPDATEFORECOLOR(65280);
8. April 2010 16:02
8. April 2010 16:11
IF "New Overhead Rate" < "Overhead Rate" THEN CurrForm."New Overhead Rate".UPDATEFORECOLOR(255);
IF "New Overhead Rate" > "Overhead Rate" THEN CurrForm."New Overhead Rate".UPDATEFORECOLOR(65280);