Cursor reload()
syntax: |
cursor.reload() |
return: |
number - 0 if the call was successful; otherwise, a nonzero status code based on the error message produced by the database. If the method returns a nonzero status code, use the associated Database's majorErrorCode and majorErrorMessage methods to interpret the meaning of the error.
|
description: |
Requeries the database and recreates the rows of the cursor, taking into account the filter and sort properties of the Cursor.
|
see: |
#link <sedbc>, Database majorErrorCode(), Database minorErrorCode(), Cursor sort, Cursor filter
|
example: |
// assume 'curs' is a valid Cursor object // Change sort order of the cursor rows curs.sort = "Year";
// reload the cursor's contents err = cursor.reload(); |