Question Rustam Ibragimov · Sep 6, 2016

Output object fields to string

Hello, guys.

Is there a way to get all object properties, parameters and so on and put it inside a string. I know that I can use 

zw obj, but this does not work if I want to put it inside a string.

Comments

Dmitry Maslennikov · Sep 6, 2016

Looks like you want to achieve something else, and on the wrong way.

any way you can get the same output as in zwrite to array of lines, with command

Do DumpObjectToArray^%occRun(obj,.lines)

If you have to restore some object by this data, you have to use serialization, XML for example. For xml I would recommend to look at this part of the documentation.

0
Jeffrey Drumm  Sep 6, 2016 to Dmitry Maslennikov

While I'm not the original poster, Dmitry, I find your answer to be useful. I've had occasions where the output from zw would have been useful in Ensemble traces. Thanks!

0