stack.visit
| Syntax |
stack.visit (adrStack, callback)
|
| Params |
adrStack is the address of a stack object allocated by stack.create. callback is the address of a script that will be called for each element in the stack.
|
| Action |
Calls the callback script for each element in the stack.
|
| Returns |
True if all the calls to the callback routine returned true.
|
| Examples |
stack.visit (scratchpad.nameStack, @msg) » true // displays the value of each stack element in Frontier's about window.
|
| Notes |
The callback routine receives exactly one parameter, the value of one of the elements in the stack. It must return true or false. If it returns false, stack.visit returns false immediately.
|
| See Also |
stack.create
|