Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ParameterDescription
variableIs assigned the row key from the selected list.
valueWhen a multi-valued sort list is being used, you can use the optional variable value. It returns the position of variable in the multi-valued field.
cursorvarA variable containing the cursor variable set for this table in a Select...By statement.
ThenExecuted if the ReadNext is successful.
ElseThe statement(s) following Else are executed if a key cannot be read from the selected list, for example, when the list has been exhausted. The Status() function indicates the reason for the false branch, and the system variable @FILE_ERROR contains details about the nature of the error.

...

Code Block
declare function Set_FSError
open "CUSTOMERS" To customers_table else
status = Set_FSError()
return
end
select customers_table
 
Done = 0
loop
ReadNext @ID else Done = 1
Until Done Do
read @RECORD From customers_table, @ID else
status = Set_FSError()
return
end
* processing logic here ...
GoSub PROCESS
Repeat
return 0
PROCESS:
   /* process the row */
return
return

 

 

See also

ReadSelect