GRID.GetRangeName

Previous  Next

 

name = GRID.GetRangeName( BYVAL nControl AS INTEGER,

                          BYVAL nIndex   AS INTEGER ) AS STRING

 

 

 

 

Returns the name of the named range specified by the index.  If the range doesn't exist, an empty string is returned.  The index will use OPTION BASE.

 

Example:

 

DIM nIndex AS INTEGER

DIM strName AS STRING

 

nIndex = 0

 

DO

  str = GRID.GetRangeName( nControl, nIndex )

  IF str <> "" THEN

     PRINT "Range Name[";nIndex;"] = ";str,

     nIndex = nIndex + 1

  ENDIF

WHILE str <> ""

 

PRINT "Total Number of Ranges = ";nIndex,