thanks a lot for the hints!

Madou


2013/1/27 Mark Miesfeld <miesfeld@gmail.com>
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

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users