How to use a display method in report as a range in Axapta 3.0

Hi,

I am just wondering if someone could help me please. I am designing a report in Axapta 3.0 and facing a issue. I have got a display method in InventTable which is returning the ON-Hand stock quantity. I am using this in a report to show the quantity of item has not been sold. Now i want to add this method as a range so only the item has quantity more then 5 on hand should be displayed.

I will appreciate any help regarding this.

Regards,

display str onhandstock()

{

if (_qty >= 5);

return _qty;

else

return “”;

}

with _qty had been declared in class declaration

hope it helps, regards