How to conditionally highlight cell in DBCrossTab

edited 10:49AM in FastReport 4.0
Hi. I have created DBCrossTab on my report. Everything works fine but I have to add one more feature. I have to conditionally highlight cell in this table.

What I tried is:
- do it in code, but it occured that checking field value it's too late here. I mean, for example I tried this code:
showMessage(dateToStr(<frxDBDataset."startDate">));

and it always was showing the last date from my dataset.

I tried to do this using conditional highlighting. But I was waiting, and waiting, and waiting.... and nothing happened. Report didn't show up.

So, how can I do this?

For example, if startDate is "2009-01-01" then memo.color:=clRed.

Leave a Comment