title: Why doesn't my program display an answer? (Visual Studio)
body: <p>everyone!</p>
  
  <p>I'm currently making a beginners program for converting currencies. Specifically, US Dollars and Pound Sterling. The user enters a value and depending on what start and end currency they choose, it provides an answer in a label. The problem is, the answer wont display in the label. I've attached the code for reference. I've tried a few things but I cant get it. I'm sure you'll all cringe at this code, so feel free to give me other suggestions other than the answer to my question.</p>
  
  <pre><code>Dim result As Decimal
  
  Private Sub bt_run_Click(sender As Object, e As EventArgs) Handles bt_run.Click
      If cb_start.SelectedValue = "Pound Sterling" And cb_end.SelectedValue = "Pound Sterling" Then
          result = txt_amount.Text
          lbl_ans.Text = result
      ElseIf cb_start.SelectedValue = "Pound Sterling" And cb_end.SelectedValue = "US Dollar" Then
          result = txt_amount.Text * 1.57
          lbl_ans.Text = result
      ElseIf cb_start.SelectedValue = "US Dollar" And cb_end.SelectedValue = "US Dollar" Then
          result = txt_amount.Text
          lbl_ans.Text = result
      ElseIf cb_start.SelectedValue = "US Dollar" And cb_end.SelectedValue = "Pound Sterling" Then
          result = txt_amount.Text * 0.64
          lbl_ans.Text = result
      End If
  
  End Sub
  </code></pre>
  
  <p>End Class</p>