I noticed with testing nextrow/previousrow procedures in a grid i noticed that both procedures give an error when you reach the last or first record. Error is record 0 does not exist, or record xxx does not exist. Is it possible to check if the record number exists and if it does not exist, just do nothing? I think this would be much more user friendly.
asked 24 Feb '12, 05:37
Yes, it is possible. nextRow and previousRow APIs raises e_invalidRowNumber exception if the current row is already the last row or the first row. Below is the sample of how to handle exceptions:
answered 24 Feb '12, 05:42
Ugur Kocak ♦