On Sun, Jan 27, 2013 at 12:28 PM, Mukenx <mukenx@gmail.com> wrote:
to add a node at a certain nesting level to a tree, the tree view add() method states that the nesting level corresponds to the number of leading commata.

for a given nesting level n (determined at runtime) for a node to be appended to the tree, is there another way of adding the node than using INTERPRET?

INTERPRET 'tc~add( ' || ","~copies(n) || ', "nodeText")'

For that specific line, I believe this will work the same:

  arguments = .array~new(n + 1)
  arguments[n + 1] = "nodeText"
  tc~sendWith('add', arguments)

--
Mark Miesfeld