GRID_COLUMN_DELETE

GRID_COLUMN_DELETE N,C

DELETES COLUMN C IN GRID NUMBER N

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

ACTION

The command GRID_COLUMN_DELETE N,C deletes column C in GRID number N.

C must belong to the GRID :

- C must be greater than 0,

- C must be less than or equal to the number of columns in the GRID number N.

SYNTAX: GRID_COLUMN_DELETE N,C

  • 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.
  • C = column number (integer or real) of the system object GRID.

USE

  • The command GRID_COLUMN_DELETE is used to delete a column 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 or equal to 0.
  • If system object number N does not exist.
  • If number N is not the number of a system object : GRID.
  • If value C is less than or equal to 0.
  • If value C is not a correct expression.

EXAMPLE

grid 1:rem create a GRID

rem place it

top 1,10:left 1,10

rem resize it

width 1,350:height 1,150

rem fill the GRID with 5 rows and 5 columns

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,1,5,"Cell 1,5"

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,2,5,"Cell 2,5"

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"

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

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

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

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

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

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

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

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

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

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

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

wait 1000:rem wait for 1 second

rem delete column n° 3

grid_column_delete 1,3

SEE ALSO

GRID

GRID_CLEAR

GRID_COLUMN

GRID_COLUMN()

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_SAVE

GRID_WRITE

GRID_X_TO_COLUMN()

GRID_Y_TO_ROW()