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.

  • + 1
  • 0
  • 326
  • 2
  • 1

Answers

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.

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!