GRID_SAVE

GRID_SAVE N,R,C,F

SAVES THE GRID NUMBER N INTO THE FILE F, FROM ROW 1 TO R AND FROM COLUMN 1 TO C

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

ACTION

The command GRID_SAVE N,R,C,F saves the GRID number N into the file F, from row 1 to R and from column 1 to C.

The file F is a text type, with the configuration:

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_SAVE N,R,C,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.
  • R = number of row (integer or real) of the system object GRID.
  • C = number of column (integer or real) of the system object GRID.
  • F = string expression, path of the file.

USE

  • The command GRID_SAVE is used to save the content of a GRID into 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 R or C is not a correct expression.
  • If R or C is not greater than 0.
  • 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 values

grid_write 1,1,1,"Cell 1,1"

grid_write 1,1,2,"Cell 1,2"

grid_write 1,1,3,"Cell 1,3"

grid_write 1,1,4,"Cell 1,4"

grid_write 1,2,1,"Cell 2,1"

grid_write 1,2,2,"Cell 2,2"

grid_write 1,2,3,"Cell 2,3"

grid_write 1,2,4,"Cell 2,4"

grid_write 1,3,1,"Cell 3,1"

grid_write 1,3,2,"Cell 3,2"

grid_write 1,3,3,"Cell 3,3"

grid_write 1,3,4,"Cell 3,4"

rem save it to a texte file

grid_save 1,3,4,"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_LOAD

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_WRITE

GRID_X_TO_COLUMN()

GRID_Y_TO_ROW()