M mhol99 New Member Licensed User Longtime User Feb 19, 2012 #1 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: Feb 19, 2012
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.
K kickaha Well-Known Member Licensed User Longtime User Feb 19, 2012 #2 You have missed out Then at the end of the If line.
JonPM Well-Known Member Licensed User Longtime User Feb 20, 2012 #3 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...
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...
M mhol99 New Member Licensed User Longtime User Feb 20, 2012 #4 Thanks! Didn't realize the THEN was missing.