title: LibreOffice Basic get Elements from form
body: <p>I'm trying to get value from textfield on the form.</p>
  
  <pre><code>sub Test(oEv)
  
  oForm = oEv.Source.Model.Parent
  textBox = oForm.getByName("Description")
  MsgBox textBox.Text
  
  end sub
  </code></pre>
  
  <p>There is an Exception: "Type: com.sun.star.container.NoSuchElementException" on the line "textBox = oForm.getByName". I have a text field with the name "Description" on the same form, where is the button I press to run this macro. What is wrong here?</p>