[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]] ==== Readnext non-terminating with sorted list (OpenInsight 32-bit Specific) ==== === At 22 SEP 2003 12:02:28PM Gerald Lovel wrote: === {{tag>"OpenInsight 32-bit Specific"}} I use REDUCE and SELECT ... BY to produce a cursor. Then I wish to readnext through the keys, but using a non-terminating cursor, as shown in the following code: First=True$ readnext Key using Popup_KeyList@ by AN then /* Eof=Status() - First */ begin case case First First=False$ case status() Eof=True$ end case end else Eof=True$ When there is no sort list, this code works fine. Status()=1 when the end of cursor is reached. When a sort list is used, however, Status()=1 at various keys throughout the cursor. Looks broken to me, but maybe someone else will have an explanation about detecting EOF for a non-terminating sorted cursor. [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=F1A63AA3FD6586A485256DA900581E09|View this thread on the forum...]]