Jump to content

Displaying data in an variant tree


Recommended Posts

Anyone have a good way of converting a variant tree into something displayable/log-able without writing some massive recursive function? (using 8.6.1, so no native recursion for me unless I use VI Server tricks)

I need to dump the status of my tree to a log file for debug purposes. The tree is just an empty variant with attributes that have attributes that have attributes...

thanks,

-John

Link to comment

Implement recursion by using a stack (not too difficult and faster than native recursion and much faster than VI Server recursion). Propably you'd like to have it saved as xml so you can read it with SW like excel.

I did post some stuff for reverse order (xml to tree) on the dark side. At the end of the thread I show some code.

Felix

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.