Discard occurences in hitlist.

Use Case

Documentation of statement discard for Uniface 9.5: The behavior following discard is governed by the location of the discarded occurrence: If the discarded occurrence is not the last occurrence, the next occurrence is made active after a discard. If the discarded occurrence is the last occurrence, the previous occurrence is made active after discard. Imagine 3 occurences retrieved. According to documentation, discard on 2nd occurence should make previously 3rd occurence current. It is true, but only when all 3 occurences were already fetched. When occurences are not fetched, 1st occurence is current. Uniface probably thinks that discarded occurrence is the last occurrence There is something wrong, either in documentation, or in Uniface behaviour. I expect a correction in documentation is more easy, but I prefer correction in Uniface behaviour. BTW, I think there is another mistake in a table bellow. Value in first row is not 1, but >0. Thanks Stanislav


It is confusing for all developers



Operating System

Not Applicable



0 thoughts on “discard”

Leave a Reply