User Tools

Site Tools


previous_get_the_previous_browse_item_.htm
Navigation:  ABC Library Reference > BrowseClass > BrowseClass Methods >====== Previous (get the previous browse item) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

Previous, VIRTUAL

blk2blue.jpg

The Previous method gets the previous record from the browse view and returns a value indicating its success or failure.

Implementation:

Returns Level:Benign if successful, Level:Notify if it reached the end of the file, and Level:Fatal if it encountered a fatal error. Corresponding severity level EQUATEs are declared in ABERROR.INC. See Error Class for more information on error severity levels.

Level:Benign                  EQUATE(0)

Level:User                    EQUATE(1)

Level:Program                 EQUATE(2)

Level:Fatal                   EQUATE(3)

Level:Cancel                  EQUATE(4)

Level:Notify                  EQUATE(5)

The Previous method is called by the Fetch and ResetThumbLimits methods. Among other things, Previous calls the PARENT.Previous (ViewManager.Previous) method. See ViewManager for more information.

Return Data Type:     BYTE

Example:

CASE MyBrowse.Previous()             !get previous record

OF Level:Benign                      !if successful, continue

OF Level:Fatal                       !if fatal error

 RETURN                              ! end this procedure

OF Level:Notify                      !if end of file reached

 MESSAGE('Reached end of file.')     ! acknowledge EOF

END

See Also:     Fetch

previous_get_the_previous_browse_item_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1