DefGrid
The DefGrid method attaches the default grid window pane that opens from the Script Editor and returns its CGrid object. To create a new, independent grid window, use NewGrid instead. To attach an existing grid window, use AttachGrid.
G = DefGrid()
where
G is the CGrid object attached to the default grid pane on the Script Editor window
A default grid pane and its CGrid object are created when the Script Editor is created. The default grid is set to 3 columns x 50 rows but this size can be changed as can the other parameters of the grid.
The following script attaches the default grid pane and sets its size to 4 columns x 10 rows:
|
-- Attach the default CGrid object |
|
-- Get the number of grid columns |
|
-- Get the number of grid rows |
|
-- Get the number of grid sheets |
|
- Result: Grid: 3x50x1 |