<div dir="ltr"><div>Object.Class() returns the class of the given object, which can be used for this... partially.<br></div><div></div><div>However, if you need full serialization, IE clone also private values of the objects. You need example from Benoit. As it is implemented only recently and I haven't seen any documentation for it.</div><div><br></div><div><br></div><div>Jussi<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 24, 2020 at 12:20 AM martin p cristia <<a href="mailto:tercoide@hotmail.com">tercoide@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

  
  <div>
    <div id="gmail-m_-557872360631335863code_a96233ba"><span>I want a clone an object I
        dont know what Class it is.<br>
      </span></div>
    <div><span><br>
      </span></div>
    <div><span><a href="http://gambaswiki.org/wiki/lang/public" target="_blank"><span style="color:rgb(6,0,255);font-weight:bold">Public</span></a>
        c1 <a href="http://gambaswiki.org/wiki/lang/as" target="_blank"><span style="color:rgb(6,0,255);font-weight:bold">as</span></a> <a href="http://gambaswiki.org/wiki/lang/new" target="_blank"><span style="color:rgb(6,0,255);font-weight:bold">New</span></a> Clase1       
                    ' These classes may have arrays of other classes
        Object[]<br>
        <a href="http://gambaswiki.org/wiki/lang/public" target="_blank"><span style="color:rgb(6,0,255);font-weight:bold">Public</span></a>
        c2 <a href="http://gambaswiki.org/wiki/lang/as" target="_blank"><span style="color:rgb(6,0,255);font-weight:bold">as</span></a> <a href="http://gambaswiki.org/wiki/lang/new" target="_blank"><span style="color:rgb(6,0,255);font-weight:bold">New</span></a>
        Clase2                   <span style="color:rgb(26,91,26);font-style:italic">' All diffent</span><br>
        <a href="http://gambaswiki.org/wiki/lang/public" target="_blank"><span style="color:rgb(6,0,255);font-weight:bold">Public</span></a>
        c3 <a href="http://gambaswiki.org/wiki/lang/as" target="_blank"><span style="color:rgb(6,0,255);font-weight:bold">as</span></a> <a href="http://gambaswiki.org/wiki/lang/new" target="_blank"><span style="color:rgb(6,0,255);font-weight:bold">New</span></a> Clase3       
                    <br>
        <a href="http://gambaswiki.org/wiki/lang/public" target="_blank"><span style="color:rgb(6,0,255);font-weight:bold">Public</span></a>
        c4 <a href="http://gambaswiki.org/wiki/lang/as" target="_blank"><span style="color:rgb(6,0,255);font-weight:bold">as</span></a> <a href="http://gambaswiki.org/wiki/lang/new" target="_blank"><span style="color:rgb(6,0,255);font-weight:bold">New</span></a> Clase4<br>
        <br>
      </span></div>
    <div><span><br>
      </span></div>
    <div><span>' at this point we don't know <br>
      </span></div>
    <div><span>
        <a href="http://gambaswiki.org/wiki/lang/public" target="_blank"><span style="color:rgb(6,0,255);font-weight:bold">Public</span></a>
        Function<a href="http://gambaswiki.org/wiki/lang/sub" target="_blank"><span style="color:rgb(6,0,255);font-weight:bold"></span></a>
        ClonMe<span style="color:rgb(97,33,136)">(</span>original <a href="http://gambaswiki.org/wiki/lang/as" target="_blank"><span style="color:rgb(6,0,255);font-weight:bold">as</span></a> <a href="http://gambaswiki.org/wiki/lang/type/object" target="_blank"><span style="color:rgb(6,0,255)">Object</span></a><span style="color:rgb(97,33,136)">)</span> <a href="http://gambaswiki.org/wiki/lang/as" target="_blank"><span style="color:rgb(6,0,255);font-weight:bold">as</span></a> <a href="http://gambaswiki.org/wiki/lang/type/object" target="_blank"><span style="color:rgb(6,0,255)">Object</span></a><br>
        <br>
        <span style="color:rgb(26,91,26);font-style:italic">' a New object
          of the same kind with all variables/properties and constants</span>
        with the same values</span></div>
    <div><span>
        ????? <br>
        <br>
        <a href="http://gambaswiki.org/wiki/lang/end" target="_blank"><span style="color:rgb(6,0,255);font-weight:bold">End</span></a></span></div>
    <p><br>
    </p>
    <pre cols="72">-- 
Saludos

Ing. Martin P Cristia</pre>
  </div>

<br>
----[ <a href="http://gambaswiki.org/wiki/doc/netiquette" rel="noreferrer" target="_blank">http://gambaswiki.org/wiki/doc/netiquette</a> ]----<br>
</blockquote></div>