Hi Can anyone help please.
I just can't see why I am getting this error. I have included the code for the sub below.
Compiling code. Error
Error parsing program.
Error description: Missing Keyword: end sub
Occurred on line: 221
End If
I just can't see why I am getting this error. I have included the code for the sub below.
Compiling code. Error
Error parsing program.
Error description: Missing Keyword: end sub
Occurred on line: 221
End If
B4X:
Sub bEnter_Click
myNumber =txtNum.Text
If transactFlag= False Then
If myNumber.Length <> 10 Then
Msgbox("Incorrect number of characters, please enter your number again","Loyalty Program")
Exit Sub
Else
lblDisplay.Text="Enter transaction amount and click enter"
lblDisplay.TextColor=Colors.Red
transactFlag=True
txtNum.Text=""
txtNum.INPUT_TYPE_DECIMAL_NUMBERS
txtNum.Color=Colors.LightGray
End If ' this is line 221
Else
transaction(myNumber)
End If
txtNum.Text = ""
End Sub
Last edited: