title: Why does Gambas give me an error after I Dim a variable after a function call?
body: <p>I'm playing around with gambas. </p>
  
  <p>This code gives me the error "unexpected dim in FMain.class:6"</p>
  
  <pre><code>Public Sub Form_Open()
  
    Print "this won't work"
  
    Dim nickname As String = "gambas"
  
    Print "Your new name is " &amp; nickname
  
  End
  </code></pre>
  
  <p>This code doesn't, and runs fine:</p>
  
  <pre><code>Public Sub Form_Open()
  
    Dim nickname As String = "gambas"
  
    Print "Your new name is " &amp; nickname  
  
  End
  </code></pre>
  
  <p>Does gambas have requirements where variables are declared like pascal?  I can't find any mention of it in the documentation.  Thanks.</p>