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:
Like kickaha said, your code should look like this:

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

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