>Hi all
>
>I have a problem with dynamicbackcolor in a grid: When I define one, I get a datatype mismatch in the return value of the baseclass of my form refresh. FYI I normally use the following structure in my methods:
>
>LOCAL llRetval
>llRetval = DODEFAULT()
>IF llRetval
> *My code here
>ENDIF
>RETURN llRetval
>
>In this instance, the value llRetval receives from DODEFAULT() happens to be the color code in the dynamicbackcolor. If I don't use dynamicbackcolor, all is ok. I find this wierd! I have debugged and the value returned in the parent method is a boolean (.T.) just before control is returned to the child method. Stepping once to return to the child method and the value returned is the number.
>
>So two questions:
>
>1) WHY!!!!!!!!!!!!!!????
>2) Do I really need to validate the boolean return value in a form refresh? What is the advantage?
>
>Thanks in advance
>Charles Richard
I don't quite follow. Dynamicbackcolor, if retrieved by some method, should be Character data type expression returning Integer.
Edward Pikman
Independent Consultant