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!
Instead use:
dw_1.find('part_no = 123', 1, dw_1.rowcount() + 1)
or simply
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 inLeave a Reply
You must be logged in to post a comment. If you choose to login - or register - on this site, a non-tracking cookie will be stored on your computer but your email address will never be published or shared.