So I have two If statements and an overloaded function that needs to be used. I can't seem to figure out the logic for how to get this to work as i want it.
Ideally, I want the first IF to check if 'ZipCode' is Null...if it is > it uses the CanBeAssigned(c ounty,state,sta tus) function and then does the ''LOTS OF CODE THAT I DONT WANT TO POST'' ...
...however, if 'ZipCode' is NOT NULL then it uses the CanBeAssigned(z ipcode,status) and then proceeds to do the''LOTS OF CODE THAT I DONT WANT TO POST'' .
Code:
If IsDBNull(orderstable.Rows(0).Item("ZipCode")) Then
CanBeAssigned(orderstable.Rows(0).Item("County"), orderstable.Rows(0).Item("State"), orderstable.Rows(0).Item("Status").ToString.ToUpper)
Else
If CanBeAssigned(orderstable.Rows(0).Item("ZipCode"), orderstable.Rows(0).Item("Status").ToString.ToUpper) Then
''LOTS OF CODE THAT I DONT WANT TO POST''
...however, if 'ZipCode' is NOT NULL then it uses the CanBeAssigned(z ipcode,status) and then proceeds to do the''LOTS OF CODE THAT I DONT WANT TO POST'' .
Comment