<div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div>I don't understand your point. That is exactly what I expect to see. TypeOf returns "object" for every possible instance of every possible class.</div><div>So, instance of Label is object and TypeOf will return so as expected.</div><div><br></div><div>The problem is that Me["Label1"] does not return an object, which is an instance of class label, but instance of class control.</div><div>That is unexpected. Looks like a bug to me.<br></div></div></div></blockquote><div><br></div><div>Or perhaps, the bug is in the Object.Type(), which returns "Label" instead of "Control".</div><div><br></div><div><br></div><div>Jussi<br></div><br></div></div>