I keep having an error in using "setfillcolor" procedure of the table class object.
I'd like to turn the cell into red if the estimated coefficient in the cell has an unexpected sign.
I wrote a loop that executes the following two senteces;
Code: Select all
EST2_PANEL_ERRI3_S_1.setfillcolor (!row1,!col) @rgb(!r, !g, !b)
EST2_PANEL_ERRI3_S_1.setfillcolor (!row2,!col) @rgb(!r, !g, !b)
A typical error that I have is as follows.
Any execution like this ends up with a similar error, regardless of the row and/or column numbers.Invalid cell range, in "DO_ EST2_PANEL_ERRI3_S_1.SETFILLCOLOR (3,4) @RGB(255, 0, 0)"
So, I suspect that I had a wrong syntax, but I think I correctly follow what is written in the help file as below;
Could anyone help me?Examples:
To set a purple background color for the cell in the second row and third column of TAB1, you may use any of the following:Code: Select all
tab1.setfillcolor(C2) @rgb(128, 0, 128) tab1.setfillcolor(2,C) @RGB(128, 0, 128) tab1.setfillcolor(2,3) purple tab1.setfillcolor(r2c3) purple
I attached my workfile and program code.
Any comment and/or hint will be highly appreciated.
Thank you very much,
Futoshi
