Versions
All
Purpose
Go to the next record.
Syntax
Code:$L.success.flag=rtecall("next", $L.rc, $L.filevar)
- $L.success.flag
true = success
false = failure- $L.rc
returncode of the call
0 = next record found
1 = end of list reached- $L.filevar
the variable in which to store the records retreived, updated or added
Example
Initialises the operator file in filevariable $L.filevar. Select all operators starting with A. Check if the query returned al least one record and start looping with a do-while through the retrieved recordlist to update each password.Code:$L.success.flag=rtecall("rinit", $L.return.code, $L.filevar, "operator") $L.query="name#\"A\"" $L.success.flag=rtecall("select", $L.return.code, $L.filevar, $L.query) if ($L.return.code<3) then (while ($L.return.code.next~=1) do (password in $L.filevar="new_password";$L.success.flag=rtecall("rupdate", $L.return.code, $L.filevar);$L.success.flag=rtecall("next", $L.return.code.next, $L.filevar)))


Reply With Quote
Bookmarks