[RESOLVED] [02/03] Can't use 'Or' in an if statement.
VB Code:
if data.Tables("ResolutionTable").Rows(iter).Item(1).ToString.CompareTo("0") Or _
data.Tables("ResolutionTable").Rows(iter).item(1).ToString.CompareTo("") Or _
[u]IsNothing(data.Tables("ResolutionTable").Rows(iter).Item(1).ToString)[/u] Then
The portion that I've underlined is where the error is occuring (as it is what is underlined in VS .NET.) The error message is:
Code:
Option Strict On disallows implicit conversions from 'Boolean' to 'Integer'.
Why is this happening?
I'd like to stick to using option strict, since it enforces good programming practices.
Re: [02/03] Can't use 'Or' in an if statement.
Never mind, I figured it out.
Re: [02/03] Can't use 'Or' in an if statement.
Quote:
Originally Posted by YourSurrogateGod
Never mind, I figured it out.
Then please mark your thread as resolved from the Thread Tools menu.