I try to make a kind of calculator with App inventor 2. Since I finished with design and blocks, I installed the program, I got the error written in the title: Screen.yail:280:1089 and previously 280:1093. Could you guys help me about this problem? This happens when I click on the "PlusBut" whose click button could be seen at the attachment.
Moreover, previously I had the code of the same program in VB2010, which I tried to adapt it to the Appinventor blocks, may help you understand the blocks more easily. Here is the C code of the block I get help:
Private Sub PlusBUT_Click(ByVal sender As Object, ByVal e As EventArgs) Handles PlusBUT.Click
If Not ANTextBox.Text = "" Then
If ResultTextBox.Text = "" Then
ANTextBox.Text = ANTextBox.Text + "+ "
If Not X1 = 0 And Not X2 = 0 Then
ResultTextBox.Text = X1 + X2
End If
Else
ANTextBox.Text = ANTextBox.Text + "+ "
ResultTextBox.Text = ResultTextBox.Text + X2
TextBox1.Text = (ResultTextBox.Text / 604) * 100
TextBox2.Text = 604 - ResultTextBox.Text
TextBox6.Text = (TextBox2.Text / 365) * 2
TextBox3.Text = TextBox6.Text / 2
TextBox5.Text = TextBox3.Text / 2
TextBox4.Text = (TextBox5.Text / 3) * 2
End If
End If