BROWSE()

Browse a database file

Syntax

BROWSE( [<nTop>, <nLeft>, <nBottom>, <nRight>] ) --> lOk

Arguments

<nTop> coordinate for top row display.

<nLeft> coordinate for left column display.

<nBottom> coordinate for bottom row display.

<nRight> coordinate for right column display.

Returns

BROWSE() return .F. if there is no database open in this work area, else it return .T.

Description

BROWSE() is a general purpose database browser, without any thinking you can browse a file using the following keys:

KeyMeaning
LeftMove one column to the left (previous field)
RightMove one column to the right (next field)
UpMove up one row (previous record)
DownMove down one row (next record)
Page-UpMove to the previous screen
Page-DownMove to the next screen
Ctrl Page-UpMove to the top of the file
Ctrl Page-DownMove to the end of the file
HomeMove to the leftmost visible column
EndMove to the rightmost visible column
Ctrl LeftPan one column to the left
Ctrl RightPan one column to the right
Ctrl HomeMove to the leftmost column
Ctrl EndMove to the rightmost column
EscTerminate BROWSE()
On top of the screen you see a status line with the following indication:

Record ###/###Current record number / Total number of records.
<none>There are no records, the file is empty.
<new>You are in append mode at the bottom of file.
<Deleted>Current record is deleted.
<bof>You are at the top of file.
You should pass whole four valid coordinate, if less than four parameters are passed to BROWSE() the coordinate are default to: 1, 0, MAXROW(), MAXCOL().
Examples
      // this one shows you how to browse around
      USE Around
      BROWSE()
Status

Started

Files

Library is rtl

See Also