home *** CD-ROM | disk | FTP | other *** search
- index value index [chars]
- Extract an element from a list or a character from a
- string. If the chars keyword isn't specified, then
- index treats value as a list and returns the index'th
- field from it. In extracting the field, index observes
- the same rules concerning braces and backslashes as the
- Tcl command interpreter; however, variable
- substitution and command substitution do not occur. If
- index is greater than or equal to the number of
- elements in value, then the empty string is returned.
- If the chars keyword is specified (or any abbreviation
- of it), then value is treated as a string and the
- command returns the index'th character from it (or the
- empty string if there aren't at least index+1
- characters in the string). Index 0 refers to the first
- element or character of value.
-
-