OpenEdge 11.7.2
I've encountered a strange error when programatically traversing a browse.
The code uses the SELECT-NEXT-ROW() method on the browse and expects the method to return false when on the last row.
Normally, this works fine, but if one of the cells on that last line is currently open for editing, SELECT-NEXT-ROW() returns true even if it's on the last row. This causes my code to go into an infinite loop.
Note that this is in a generic context, so I cannot make any assumptions about the browse or its contents.
So my options are to iterate through the browse in a different way or find a way to force the cell to close so SELECT-NEXT-ROW() can work properly.
The user wants to see the browse scroll down while this is happening, so pulling out the QUERY object and iterating it there is not an option.
I've actually tried to ask ChatGPT about this and it keeps offering methods that don't seem to exist (at least on my version of Progress) like EDI-EDIT, GET-CELL-STATE, or END-EDIT-CELL. yikes.
Any hep would be appreciated.
-Ken
I've encountered a strange error when programatically traversing a browse.
The code uses the SELECT-NEXT-ROW() method on the browse and expects the method to return false when on the last row.
DO WHILE v-ok:
/* do stuff */
v-ok = hbrowse:SELECT-NEXT-ROW().
END.
Normally, this works fine, but if one of the cells on that last line is currently open for editing, SELECT-NEXT-ROW() returns true even if it's on the last row. This causes my code to go into an infinite loop.
Note that this is in a generic context, so I cannot make any assumptions about the browse or its contents.
So my options are to iterate through the browse in a different way or find a way to force the cell to close so SELECT-NEXT-ROW() can work properly.
The user wants to see the browse scroll down while this is happening, so pulling out the QUERY object and iterating it there is not an option.
I've actually tried to ask ChatGPT about this and it keeps offering methods that don't seem to exist (at least on my version of Progress) like EDI-EDIT, GET-CELL-STATE, or END-EDIT-CELL. yikes.
Any hep would be appreciated.
-Ken