*:procedure getmode lparameter lcMode DIMENSION arrMode(5) arrMode(1) = 'WLCLEAR' arrMode(2) = 'WLNORMAL' arrMode(3) = 'WLREVERSE' arrMode(4) = 'WLCLREOLN' arrMode(5) = 'WLFLUSHOUTPUT' lcModeStr = '' lcMode = STRTRAN(lcMode,'+','') FOR lnXYZ = 1 TO LEN(lcMode) lnChar = VAL(SUBSTR(lcMode,lnXYZ,1)) lcModeStr = lcModeStr + arrMode(lnChar) + '+' ENDFOR lcModeStr = LEFT(lcModeStr,LEN(lcModeStr)-1)in other program i have this
#INCLUDE "WLConstantsFox.h" && the WLNORMAL, WLREVERSE etc are here lcMode = getMode('1+2+5') && this will return 'WLCLEAR+WLNORMAL+WLFLUSHOUTPUT'now note that lcMode is a string
*:this should be like oRF.Print(0,0,"just a test",WLCLEAR+WLNORMAL+WLFLUSHOUTPUT) oRF.Print(0,0,"just a test",&lcMode)here is where I have the problem some times is WLCLEAR, sometimes is WLREVERESE and so on
DO WHILE .T. ME.Work() ENDDO