Getting "End Sub" missing

mhol99

New Member
Licensed User
Longtime User
Does anybody know why when using the PreferenceActivtiy Library and getting the values from the Manager as in

If Manager.GetBoolean ("SomeItem") = True
DoSomething
Else
DoSomethingElse
End If

Results in a compiling error says "End Sub" missing.

Whereas if you change it to a select statement....

Select Manager.GetBoolean ("SomeItem")
Case True
DoSomething
Case False
DoSoemthingElse
End Select

.....You don't.
 
Last edited:

JonPM

Well-Known Member
Licensed User
Longtime User
Like kickaha said, your code should look like this:

B4X:
If Manager.GetBoolean ("SomeItem") = True Then
DoSomething
Else
DoSomethingElse
End If

Also, this is the wrong forum for these types of questions...
 
Top