array anymore
Tests if a search has more elements.
array anymore ARRAYNAME SEARCHID
Description
Gives 1 when array nextelement of the search SEARCHID has one more element to give, and 0 at the end.
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
| ARRAYNAME | variable name | required | The array of the search. |
| SEARCHID | search id | required | The id of array startsearch. |
Returns
1 or 0.
Examples
% array set c {p 1}; set id [array startsearch c]; array anymore c $id
1
% array nextelement c $id; array anymore c $id
0
Errors
% array anymore c bad
illegal search identifier "bad"
-errorcode TCL LOOKUP ARRAYSEARCH
% array anymore c
wrong # args: should be "array anymore arrayName searchId"
-errorcode TCL WRONGARGS
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztcl 1.0.0-beta.1