title: Accessing subclass or subproperty using CallByName
body: <p>I can access class' subvalues using <strong>CallByName</strong> (In other words, I can get <code>Class.SubValue</code> with it).<br>
  But I get error when I want to get <code>Class.SUBCLASS.SubValue</code> using CallByName.<br>
  Is it possible to do it using CallByName (or by using smtg else)?</p>
  
  <p>Here's a typical code:</p>
  
  <pre><code>Class Class1
      Public someVariable as Long=123 'now "Class1" has "someVariable" 
  End Class
  Class Class2
      Public subClass as new Class1   'now "Class2" has a SUBCLASS "Class1" 
  End Class
  
  Sub Test()
      Dim c1 as New Class1, c2 as New Class2
          'This works fine, and I can get c1.someVariable. It's OK.
      a=CallByName(c1,"someVariable",CallType.Get)
          'But I get error here... and I can't get c2.subClass.someVariable
      b=CallByName(c2,"subClass.someVariable",CallType.Get)
  End Sub
  </code></pre>
  
  <p><strong>-- EDIT: Here is the actual question. --</strong>  </p>
  
  <p>I want to LOAD parameters from a file to form's controls, and in file the parameters are written like this:<br>
  <code>&lt;ControlName&gt;.&lt;Property&gt;=&lt;Value&gt; | TextBox1.Text=SomeText | Button2.Left=1234</code><br>
  And I get error when I use:<br>
  <code>CallByName(MyForm, "&lt;ControlName&gt;.&lt;Property&gt;", CallType.Set, "&lt;Value&gt;")</code>  </p>
  
  <p>How can I fix my problem (using CallByName or smtg else)?</p>