Unfortunately, the way you are doing it is the only way. There isn't a "dynamic" property that you can change on the fly.
Cathy
>Hello everbody !
>VFP 7.0 Question.
>
>I have to print calendar data and want to print special days and values in different colors.
>Is there a way to change the color with a condition???
>if dow(xyz) = sunday this.backgroundcolor = red ????
>if this.value > 1000 this.forgroundcolor = green ????
>
>Until now i put up to 4 objects(shapes or text in red,green,blue and yellow) at the same place in the report and use the print object condition (if value = .T.)
>
>One object for each color is realy stupid and i think that there must be a better way !!?? But i don't know how to do.
>
>Best regards
>Albert