GRID_LOAD

GRID_LOAD N,F

LOADS THE FILE F INTO THE GRID NUMBER N

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

ACTION

The command GRID_LOAD N,F loads the file F into the GRID number N.

The file F is a text type:

- either created by command GRID_SAVE,

- or any, but the content has the following format:

nunber of rows (R)

number of columns (C)

cell 1,1

- - -

cell 1,C

cell 2,1

- - -

cell 2,C

- - -

cell R,1

- - -

cell R,C

SYNTAX: GRID_LOAD N,F

  • 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.
  • F = string expression, path of the file.

USE

  • The command GRID_LOAD is used to fill a GRID with data from a text file.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of system objects.
  • If number N is not greater than 0.
  • If the system object number N does not exist.
  • If the system object number N is not of the type : GRID.
  • If F is not a correct expression.

EXAMPLE

rem create a GRID

grid 1

rem place it

top 1,10:left 1,10

rem size it

width 1,350:height 1,150

rem fill it with a text file

grid_load 1,"grid.txt"

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_ONE_COLUMN_WIDTH

GRID_ONE_COLUMN_WIDTH()

GRID_ONE_ROW_HEIGHT

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()