Advanced Search
Mail us
Home    Manuel    Links    Faq     Some examples tcl/tk codes     Man of Bwidget with screenshot     Man of blt with screenshot


NAME

split - Split a string into a proper Tcl list

SYNOPSIS

split string ?splitChars?

DESCRIPTION

Returns a list created by splitting string at each character that is in the splitChars argument. Each element of the result list will consist of the characters from string that lie between instances of the characters in splitChars. Empty list elements will be generated if string contains adjacent characters in splitChars, or if the first or last character of string is in splitChars. If splitChars is an empty string then each character of string becomes a separate element of the result list. SplitChars defaults to the standard white-space characters. For example,
split "comp.unix.misc" .
returns "comp unix misc" and
split "Hello world" {}
returns "H e l l o { } w o r l d".

KEYWORDS

list, split, string
Copyright © 1993 The Regents of the University of California.
Copyright © 1994-1996 Sun Microsystems, Inc.
Copyright © 1995-1997 Roger E. Critchlow Jr.
Erreur (1146) : Table 'tcltk.tcltksamplemancode' doesn't exist

Add a code sample :


Please enter your name and your email ( the I could thank's you ). Don't enter html code in the text area If you have any problem email me at this adress vidalc@club-internet.fr
 Your name    
 Your email    
 Your example