op.hoist
| Syntax |
op.hoist ()
|
| Params |
None required
|
| Action |
Causes all immediate subheads of the current heading to appear to become summits in the outline, changing the display to show only those subheads and their subheads. This has the practical effect of limiting all editing to those subheads.
|
| Returns |
True unless current heading has no subheads, in which case it returns false.
|
| Examples |
In examples.Sample Outline 2, place the bar cursor on "Subhead 1.1.1" and then execute: op.hoist ()
The display changes and you see only "Subhead 1.1.1.1" and "Subhead 1.1.1.1.1."
Notice that the bar cursor is now positioned over the first heading ("Subhead 1.1.1.1"). When you hoist a heading's subheads, the first of its subheads becomes the first summit in the outline from Frontier's viewpoint. The original first summit has not, |
| Errors |
Attempting to hoist a heading which has no subheads results in Frontier returning false, but it is not an error.
|
| Notes |
Up to five hoists are supported within a single outline. Attempting to do additional hoists will yield a return value of false.
|
| See Also |
op.deHoist
|