op.visitAll
| Syntax |
op.visitAll (adrOutline, adrCallback)
|
| Params |
adrOutline is the address of an outline whose headlines you want to traverse. adrCallback is the address of a script to be called for each headline.
|
| Action |
Visits each headline in an outline, calling a callback script for each headline.
|
| Returns |
True.
|
| Examples |
Create a new script at workspace.testCallback which reads: msg (op.getLineText ()) clock.waitSixtieths (10) In the QuickScript window, run this script: op.visitAll (@examples.Universe, @workspace.testCallback) You'll see each headline displayed in the About window. (The call to clock.waitSixtieths is just there for example purposes, so it doesn't happen too quickly to see.) |
| Notes |
Unlike most op verbs, this verb does not require the target to be set to the outline being traversed. The callback script takes no parameters. When it's called, the target is set for you and the bar cursor is placed on the current headline in the traversal. The outline is traversed from top to bottom. A bug in this verb prevents the callback script from being a local handler. When this bug is fixed, this note will be removed. This verb is new in Frontier 7.
|
| See Also |
op.visit
|