VFP native reports are not OOP, so using the Print When condition seems like the only way.
You can use Stonefield reports instead...
>I agree, but I can use with the source (alias).
>For example:
>My report expression is 'Priority', and he giving the data of 'send.priority' cursor.
>I want a way to add code something like this in the 'Print When':
>
cpriority=send.priority.value
>do case
>case cpriority='E' this.fontbold=.t.
>case cpriority='R' this.fontbold=.f.,this.fontitalic=.t.
>case cpriority='O' this.fontsize=9
>otherwise
>this.fontsize=18
>endcase
If it's not broken, fix it until it is.
My Blog