I'm working through the Beginners Guide, creating the MyFirstProgram.
Compiled, loaded onto device (connected via USB), and I'm getting 'wrong' answer. See attached screenshot. I've double-checked the code, and it all seems right. What am I missing?
Compiled, loaded onto device (connected via USB), and I'm getting 'wrong' answer. See attached screenshot. I've double-checked the code, and it all seems right. What am I missing?
B4X:
Sub CheckResult
If edtResult.Text = number1 + Number2 Then
lblComments.Text = "G O O D result" & CRLF & "Click on NEW"
btnAction.Text = "N E W"
Else
lblComments.Text = "W R O N G result" & CRLF & "Enter a new result" & CRLF & "and click OK"
End If
End Sub