Hi Sergey,
I am now trying to dynamically set the status by scanning an array that contains a status and corresponding backcolor value. It returns the value correctly when I manually do it but when I compile I receive the error "Unable to find Unknown _VSTATUS" but I have the statement 'EXTERNAL ARRAY _vstatus' in the method:
LPARAMETERS qcvalue
EXTERNAL ARRAY _vstatus
IF TYPE('qcvalue')<>"C" .or. EMPTY(qcvalue)
RETURN "RGB(255,255,255)"
ENDIF
lccolor = IIF(ASCAN(_vstatus,qcvalue)>0,_vstatus(ASCAN(_vstatus,qcvalue)+1),RGB(255,255,255))
RETURN lccolor
Any ideas why it doesn't see it? The array _vstatus is public and visible throughout the app so during runtime it will exist, don't know why the builder doesn't like it.
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"