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 >
Wrap
Text File
|
1990-05-03
|
883b
|
18 lines
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.