This version is out of date, covering development from v9.5.0 to v9.7.3. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

Tinderbox v9 Icon

Top-down

A recursing function using no user attributes. Start at the top, then name all children and so on down.

Code

    function fSectionName(iNote, iSectionValue){
        $Section(iNote) = iSectionValue;
        var:string vName = iSectionValue;
        if (vName != ""){
            vName = vName + ":";
        };
        $Path(children(iNote)).each(aNote){
            fSectionName(aNote, (vName+$SiblingOrder(aNote)));
        };
    };

Logic

Pros and Cons