GRID.DeleteRange

Previous  Next

 

status = GRID.DeleteRange( BYVAL nControl AS INTEGER,

                           BYVAL type     AS INTEGER,

                          [BYVAL strName  AS INTEGER] ) AS INTEGER

 

 

 

 

This will clear and set the selected or data range to empty or delete the named range depending on the type selected.

 

' Get/Set Range Types

 

CONST MG_RANGE_DATA        = 1

CONST MG_RANGE_SELECTED    = 2

CONST MG_RANGE_NAMED       = 3

 

Example:

 

' Create the HEADER range in cells 1, 1 to 10, 2

GRID.SetRange( nControl, MG_RANGE_NAMED, 1, 1, 10, 2, "HEADER" )

.

.

.

' Delete the range once we're done with it

GRID.DeleteRange( nControl, MG_RANGE_NAMED, "HEADER" )