Is it possible to take an internal object, write it to a string, store it in an internal program, then re-use that value in
a Skill program?
For example, if I do this:
rc = ddGetObj( "00test1" )
to get a library reference stored in variable rc, can I write the value of rc to a string and later recall that value (perhaps
storing it in a completely different variable) to access the same library? In other words, what I would like to do is
something like this:
myIPCwrite( rc ) to save the value of rc to an extneral process
lib1 = myIPCread() to recall it
(this could also be referred to as marshalling and unmarshalling a value)
No. You can't do this.Objects are created in VM in each session, and the IDs cannot be re-used in different sessions. Some objects (dd object forexample) you should be careful about storing long term, since things may change...Regardless of this, even within the same session, you cannot convert the print value of a object (such as a dd objector db object) back into the actual object reference itself.What you should write is the information about how to recreate the object - i.e. the library name in this case. There'sno harm in doing another ddGetObj after reading the library name back later.Regards,Andrew.