beetlebug▾
/

listbox size

Gives the count of the items.

PATHNAME size

Description

Gives the count of the items of the listbox.

Returns

An integer.

Examples

% listbox .sz
> .sz insert end a b c
> .sz size
3

Errors

% listbox .sz2; .sz2 size x
wrong # args: should be ".sz2 size"
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1

See also