home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 2
/
fishmore-publicdomainlibraryvol.ii1991xetec.iso
/
dirs
/
tcl_447.lzh
/
TCL
/
tcl.lzh
/
tcl
/
help
/
range
< prev
next >
Wrap
Text File
|
1990-05-03
|
1KB
|
22 lines
range value first last [chars]
Return a range of fields or characters from value. If
the chars keyword isn't specified, then value must be a
list and range will return a new list consisting of
elements first through last, inclusive. The special
keyword end may be specified for last; in this case all
the elements of value starting at first are returned.
If the chars keyword, or any abbreviation of it, is
specified, then range treats value as a character
string and returns characters first through last of it,
inclusive. Once again, the end keyword may be used for
last. In both cases if a last value is specified
greater than the size of value it is equivalent to
specifying end; if last is less than first then an
empty string is returned. Note: ``range value first
first'' does not always produce the same results as
``index value first'' (although it often does for
simple fields that aren't enclosed in braces); it
does, however, produce exactly the same results as
``list [index value first]''