#define WLNORMAL 2 #define WLCLEAR 3 * #1 oRF.Print(0,0,"just a test",WLCLEAR+WLNORMAL) * #2 oRF.Print(0,0,"just a test",5)Examples 1 and 2 are the same, but example #1 is more readable as to your intent. Actually example 1 compiles to oRF.Print(0,0,"just a test",3+2) and 3+2 is evaluated at runtime.
Local lnRow, lnCol, lcMess, lcMode DECLARE arrLines[3,4] arrLines[1,1]=0 arrLines[1,2]=0 arrLines[1,3]='Fisrt Line' arrLines[1,4]= WLREVERSE+WLCLEAR && without quotes - values will be set at compile time arrLines[2,1]=1 arrLines[2,2]=0 arrLines[2,3]='Second Line' arrLines[2,4]= WLNORMAL+WLCLEAR arrLines[3,1]=2 arrLines[3,2]=0 arrLines[3,3]='Last Line' arrLines[3,4]= WLNORMAL+WLFLUSHOUT FOR _N = 1 to 3 lnRow = arrLines[_N,1] lnCol = arrLines[_N,2] lcMess= arrLines[_N,3] lcMode= arrLines[_N,4] oRF.Print(lnCol,lnRow,lcMess, lcMode) *!* vvv You could also do the same thing like this oRF.Print(arrLines[_N,1],arrLines[_N,2],arrLines[_N,3],arrLines[_N,4]) *!* ^^^ works the same but of course is less readable ENDFORHTH
>Local lnRow, lnCol, lcMess, lcMode >DECLARE arrLines[3,4] >arrLines[1,1]=0 >arrLines[1,2]=0 >arrLines[1,3]='Fisrt Line' >arrLines[1,4]='WLREVERSE+WLCLEAR' > >arrLines[2,1]=1 >arrLines[2,2]=0 >arrLines[2,3]='Second Line' >arrLines[2,4]='WLNORMAL+WLCLEAR' > >arrLines[3,1]=2 >arrLines[3,2]=0 >arrLines[3,3]='Last Line' >arrLines[3,4]='WLNORMAL+WLFLUSHOUT' > >FOR _N = 1 to 3 > lnRow = arrLines[_N,1] > lnCol = arrLines[_N,2] > lcMess= arrLines[_N,3] > lcMode= arrLines[_N,4] > oRF.Print(lnCol,lnRow,lcMess, &lcMode) >ENDFOR >>