Name

csubstr

csubstr string firstExpr lengthExpr

Return a range of characters from string string from index firstExpr for a range of lengthExpr characters.

Indices start at 0, and the words end and len can be used at the beginning of an expression to indicate the index of the last character and length of the string, respectively.

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.