some time ago i had the same requirement, I wanted a list of the items that have no stock.
I found the following trick :
In the local variables I added this piece of code :
pt_mstr is the table that is in my browse.
on find of pt_mstr do:
it is the 'return error' that does the trick. If you put that in an on find block of your table in the browse, it will skip that line.
the init function is the function I made to do my calculations of some calaculated columns.
I hope this can help you,