Where are you entering this expression? In the report's field control expression field or somewhere else? Assuming the variable is setup correctly for the report and it is changing value as it passes through each record? Why not leave the variable's value as .t. or .f. and just change the way it is displayed using the expression field of the report's control? Or am I misunderstanding your problem? I apologize if I am.
>Hi All,
>
>I was trying to create variables for columns which are logical in the report designer and found out it did not display what I wanted to see. I have a column lproperty = .T. and want to display "Yes" in my report and it's always "No". For Value to Store I got vProperty as >
>IIF(lproperty=.t.,"Yes","No") and Initial Value as "No". Is this the right way by replacing logical value to character descripiton? Can anyone see what I did wrong? TIA
.·*´¨)
.·`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"