Cicode Programming Reference > Cicode Function Categories > Tag Functions > TagBrowsePrev

TagBrowsePrev

The TagBrowsePrev function moves the data browse cursor back one record. If you call this function after you have reached the beginning of a browse, error code 412 is returned (Databrowse session EOF).

This function is a blocking function. It blocks the calling Cicode task until the operation is complete.

Syntax

INT TagBrowsePrev(LONG Session)

Session:

The handle to a browse session previously returned by a TagBrowseOpen call.

Return Value

0 if successful -1 if unsuccessful.

Related Functions

TagInfoEx, TagInfo, TagBrowseClose, TagBrowseFirst, TagBrowseNumRecords, TagBrowseOpen, TagBrowseNext,TegBrowseGetField

Example

// previous without first
TBResult = TagBrowsePrev(TBHandle);
ErrLog("Prev: " + IntToStr(TBResult) + ", Error = " + IntToStr(IsError()));
END

See Also

Tag Functions

Published June 2018