skip record at export

gmorken
gmorken Member Posts: 38
Hello,
I want to export No. , Description, Inventory from Item-table.
But I want to skip the record if Inventory-field = 0;
I have coded this:

OnBeforeExportRecord()
MESSAGE(FORMAT(Item.Inventory));
Item.CALCFIELDS(Inventory);
IF (Item.Inventory <= 0) THEN
CurrDataport.SKIP;

This doesnt work! What is the problem. The flowfield?

Regards
Tomas

Comments