Harbour All Functions – M

Mantissa

Max

MaxCol
MaxRow

MCol

MD / MKDIR / MakeDir

MDY

MemoRead

MemoTran

MemoWrit

MemVarBlock

Min

Mod

Month

MRow

Harbour Terminal Functions

Alert
Col
DevOutPict
HB_ColorIndex
HB_EOL
MaxCol
MaxRow
OutErr
OutStd

SayScreen

Row

SetMode()

SetMode()

Change the video mode to a specified number of rows and columns

Syntax

      SetMode( <nRows>,  <nCols> ) --> lSuccess

Arguments

<nRows> is the number of rows for the video mode to set.

<nCols> is the number of columns for the video mode to set.

Returns

SetMode() returns true if the video mode change was successful; otherwise, it returns false.

Description

SetMode() is a function that change the video mode depend on the video card and monitor combination, to match the number of rows and columns specified. Note that there are only a real few combination or rows/cols pairs that produce the video mode change. The followings are availables for GTDOS:

         12 rows x 40 columns   12 rows x 80 columns
         25 rows x 40 columns   25 rows x 80 columns
         28 rows x 40 columns   28 rows x 80 columns
         50 rows x 40 columns   43 rows x 80 columns
                                50 rows x 80 columns

The follow modes are available to Windows :

         25 rows x 40 columns   25 rows x 80 columns
         50 rows x 40 columns   43 rows x 80 columns
         50 rows x 80 columns

Some modes only are availables for color and/or VGA monitors. Any change produced on the screen size is updated in the values returned by MaxRow() and MaxCol().

Examples

      // The first example change to a 12 lines of display mode:
      IF SetMode( 12,  40 )
         ? "Hey man are you blind ?"
      ELSE
         ? "Mom bring me my glasses!"
      ENDIF

      // Next example change to a 50 lines mode:
      IF SetMode( 50,  80 )
         ? "This wonderful mode was successfully set"
      ELSE
         ? "Wait. this monitor are not made in rubber !"
      ENDIF

Compliance

Some of these modes are not availables in CA-Cl*pper

Platforms

DOS, Win

Seealso

MaxCol(), MaxRow()

Row()

ROW()

Returns the current screen row position

Syntax

      ROW()  --> nPosition

Arguments

None.

Returns

<nPosition> Current screen row position

Description

This function returns the current cursor row location. The value for this function can range between 0 and MAXCOL().

Examples

      ? Row()

Compliance

Clipper

Platforms

All

Files

Library is rtl

Seealso

COL(), MAXROW(), MAXCOL()

MaxRow()

MAXROW()

Returns the current screen row position

Syntax

      MAXROW()  --> nPosition

Arguments

None.

Returns

<nPosition> The maximun number of rows possible in current video mode

Description

This function returns the current cursor row location. The value for this function can range between 0 and MAXCOL().

Examples

      ? MAXROW()

Compliance

Clipper

Platforms

Linux(GT), OS2(GT), Win(GT)

Files

Library is rtl

Seealso

COL(), ROW(), MAXCOL()

Col()

 

COL()

Returns the current screen column position

Syntax

      COL()  --> nPosition

Arguments

None.

Returns

<nPosition> Current column position

Description

This function returns the current cursor column position. The value for this function can range between 0 and MAXCOL().

Examples

      ? Col()

Compliance

Clipper

Platforms

All

Files

Library is rtl

Seealso

ROW(), MAXROW(), MAXCOL()

Browse()

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:

       Key              Meaning
       ---------------  --------------------------------------------
       Left             Move one column to the left (previous field)
       Right            Move one column to the right (next field)
       Up               Move up one row (previous record)
       Down             Move down one row (next record)
       Page-Up          Move to the previous screen
       Page-Down        Move to the next screen
       Ctrl Page-Up     Move to the top of the file
       Ctrl Page-Down   Move to the end of the file
       Home             Move to the leftmost visible column
       End              Move to the rightmost visible column
       Ctrl Left        Pan one column to the left
       Ctrl Right       Pan one column to the right
       Ctrl Home        Move to the leftmost column
       Ctrl End         Move to the rightmost column
       Esc              Terminate 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()

Compliance

Clipper

Files

Library is rtl

Seealso

DBEDIT()*, TBrowse class