home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / dirs / tcl_447.lzh / TCL / tcl.lzh / tcl / help / index < prev    next >
Text File  |  1990-05-03  |  883b  |  18 lines

  1.  index value index [chars]
  2.       Extract an element from a list or a character from a
  3.       string. If the chars keyword isn't specified, then
  4.       index treats value as a list and returns the index'th
  5.       field from it.  In extracting the field, index observes
  6.       the same rules concerning braces and backslashes as the
  7.       Tcl command interpreter;  however, variable
  8.       substitution and command substitution do not occur.  If
  9.       index is greater than or equal to the number of
  10.       elements in value, then the empty string is returned.
  11.       If the chars keyword is specified (or any abbreviation
  12.       of it), then value is treated as a string and the
  13.       command returns the index'th character from it (or the
  14.       empty string if there aren't at least index+1
  15.       characters in the string).  Index 0 refers to the first
  16.       element or character of value.
  17.  
  18.