>>x=createobject('form')
>>y=createobject(x.class)
>
>It only creates an object of the same class, not a copy of the initial object.
>
>Vlad
From here you can use GetPEM() and AMEMBERS() to copy the object Properties. What if the object contains objects? I assume you want to copy those too...
One thing you could do is get Rick Strahls wwXML class which has an ObjectToXML method, which takes the object and puts it into XML... then, use the XMLToObject to build the copied object. I believe his class will also walk contained classes optionally...
So, if you have a form you want to copy, do you also want to addobject all the controls to the copy?
BOb
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only