This functon sets the currently used viewpoint (filter and sort) used by the database. DB_SetCurrentViewpt saves any changes to the previous viewpoint table, and loads the new viewpoint definition and viewpoint table. If any records have changed since the specified viewpoint table was saved, those are updated with respect to this viewpoint.
Syntax:
DB_NOTFOUND Cannot find requested viewpoint record.
DB_MEMORY Not enough memory to load new viewpoint definition/table.
DB_SEEK File is probably corrupt.
DB_WRITE