GRID_ONE_ROW_HEIGHT()

GRID_ONE_ROW_HEIGHT(N,R)

RETURNS THE HEIGHT IN PIXELS OF THE ROW NUMBER R IN THE GRID NUMBER N

  • Type: Function
  • Parameters: 2
  • Group: System Objects

ACTION

The function GRID_ONE_ROW_HEIGHT(N,R) returns the height in pixels of the row number R in the GRID number N.

Remark: by default, a GRID has rows with a height of 24 pixels.

SYNTAX: Result=GRID_ONE_ROW_HEIGHT(N,R)

  • N = system object number (integer or real). Must be greater than 0 and less than or equal to the allowed maximum number of system objects.
  • R = row number (integer or real) in the system object GRID.

USE

  • The function GRID_ONE_ROW_HEIGHT() is used to know one row height in a GRID.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of system objects.
  • If number N is less than 0.
  • If system object number N does not exist.
  • If number N is not the number of a system object : GRID.
  • If value R is less than or equal to 0.
  • If value R is not a correct expression.

EXAMPLE

rem create a GRID with its default position and dimensions

grid 1

rem set at 50 pixels the first row

grid_one_row_height 1,1,50

rem display the height of the row number 1

caption 0,str$(grid_one_row_height (1,1))

SEE ALSO

GRID

GRID_CLEAR

GRID_COLUMN

GRID_COLUMN()

GRID_COLUMN_DELETE

GRID_COLUMN_FIXED

GRID_COLUMN_FIXED()

GRID_COLUMN_INSERT

GRID_COLUMN_SIZING_OFF

GRID_COLUMN_SIZING_ON

GRID_COLUMN_WIDTH

GRID_COLUMN_WIDTH()

GRID_FIXED_COLOR

GRID_LOAD

GRID_ONE_COLUMN_WIDTH

GRID_ONE_COLUMN_WIDTH()

GRID_ONE_ROW_HEIGHT

GRID_READ$()

GRID_ROW

GRID_ROW()

GRID_ROW_DELETE

GRID_ROW_FIXED

GRID_ROW_FIXED()

GRID_ROW_HEIGHT

GRID_ROW_HEIGHT()

GRID_ROW_INSERT

GRID_ROW_SIZING_OFF

GRID_ROW_SIZING_ON

GRID_SAVE

GRID_WRITE

GRID_X_TO_COLUMN()

GRID_Y_TO_ROW()