David S Member Licensed User Longtime User Oct 25, 2013 #1 Code: Sub totalAmountEditText_FocusChanged (HasFocus As Boolean) If m_flgTotalFirstTime Then If totalAmountEditText.Text = "0.00" ' only for the first time totalAmountEditText.Text = "" End If m_flgTotalFirstTime = False End If End Sub The code above is coming up with the following error.... Error parsing program. Error description: Missing Keyword: end sub Occurred on line: 147 End If So why is this causing the above error??? I can't find any documentation that would explain this. David
Code: Sub totalAmountEditText_FocusChanged (HasFocus As Boolean) If m_flgTotalFirstTime Then If totalAmountEditText.Text = "0.00" ' only for the first time totalAmountEditText.Text = "" End If m_flgTotalFirstTime = False End If End Sub The code above is coming up with the following error.... Error parsing program. Error description: Missing Keyword: end sub Occurred on line: 147 End If So why is this causing the above error??? I can't find any documentation that would explain this. David
David S Member Licensed User Longtime User Oct 26, 2013 #2 So after staring at this at 5am for 1/2 hour and not seeing the problem I come back at 9:30pm and I see the problem. Can you spot the missing "Then"? I also see the moderator moderated my views/controls rant. lol Upvote 0
So after staring at this at 5am for 1/2 hour and not seeing the problem I come back at 9:30pm and I see the problem. Can you spot the missing "Then"? I also see the moderator moderated my views/controls rant. lol
Ohanian Active Member Licensed User Longtime User Oct 26, 2013 #3 Hi, Code: If totalAmountEditText.Text = "0.00" THEN ' only for the first time << Upvote 0
nfordbscndrd Well-Known Member Licensed User Longtime User Oct 26, 2013 #4 http://www.b4x.com/android/wiki/ind..._Solutions#Compiler:_Missing_Keyword:_End_Sub Upvote 0
David S Member Licensed User Longtime User Oct 27, 2013 #5 Thanks... but post #2 was a rhetorical question after I spotted the fact I had missed the "then". lol Upvote 0
Thanks... but post #2 was a rhetorical question after I spotted the fact I had missed the "then". lol