SitesMasstec
Programmer
Hello colleagues!
I have this in a form:

I have used a way to blank the field in the third column (when there are zeroes):
Is there a neater way to achieve the same result?
Thanks.
I have this in a form:

I have used a way to blank the field in the third column (when there are zeroes):
Code:
FOR NF=1 TO 12
strNF=STR(NF,2)
IF SUBSTR(strNF,1,1)=" "
strNF="0"+SUBSTR(strNF,2,1)
ENDIF
* Some commands here
frase="thisform.txtNFAVRPg" + strNF + ".ForeColor"
IF YNFAVRPG(NF)<>0.00
&frase=RGB(0,0,0) && Black color
ELSE
&frase=RGB(255,255,255) && White color
ENDIF
NEXT NF
Is there a neater way to achieve the same result?
Thanks.