Powerbuilder ‘Gotcha’ – Datawindow Find method
The find method on the datawindow is a very useful tool but you should always remember to set the upper limit of the rows to search in excess of the actual rowcount. In simple terms:
dw_1.find('part_no = 123', 1, dw_1.rowcount())
Never do this!
dw_1.find('part_no = 123', 1, dw_1.rowcount() + 1)
dw_1.find('part_no = 123', 1, 99999 )
This option only if you know 99999 will always be larger than the number of rows.You might also be interested in