text index
Gives the LINE.CHAR form of an index.
PATHNAME index INDEX
Description
Changes an index of any form to the form LINE.CHAR. An index past the end gives the place of end.
Returns
An index of the form LINE.CHAR.
Examples
% text .ix
> .ix insert end "hello world"
> .ix index "1.0 lineend"
1.11
% text .ix2
> .ix2 insert end "abc\ndef"
> .ix2 index "end - 1 chars"
2.3
Errors
% text .ix3; .ix3 index bogus
bad text index "bogus"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1