Wednesday, February 09, 2011 at 4:00 PM.
workspace.userlandSamples.countHeadlines
<<Changes
<<2/9/11; 3:47:12 PM by DW
<<Count the number of top-level headlines in the front outline window.
local (ct = 0);
op.firstsummit ();
loop {
ct++;
if not op.go (down, 1) {
break}};
dialog.alert (ct)
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.