beetlebug▾
/

menu delete

Deletes the entries from FIRST to LAST.

PATHNAME delete FIRST ?LAST?

Description

Deletes the entries from the index FIRST to the index LAST, both included. With no LAST, deletes the one entry at FIRST.

Returns

An empty string.

Examples

% menu .de -tearoff 0
> .de add command -label A
> .de add command -label B
> .de add command -label C
> .de delete 0 1
> .de entrycget 0 -label
C

Errors

% menu .de2; .de2 delete
wrong # args: should be ".de2 delete first ?last?"
-errorcode NONE

Facts

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

See also