| 发表于:2007-04-24 11:06:26 楼主 |
function getsectfromtree(node: ttreenode): string; var n: ttreenode; begin if node = nil then result := ' ' else if node.haschildren then begin n := node.getfirstchild; while n <> nil do begin result := result + getsectfromtree(n); n := node.getnextchild(n); end; end else result := (node.text) + '^ '; end; |
|
|
|
|