Re: How is this conditional able to execute?



Did you forget to include the values?

Your code cannot possiblity work because

returndata.ToString = ""

gives a compile-time error:

error BC30068: Expression is a value and therefore cannot be the target
of an assignment.

It would pay to show the ACTUAL code including the declarations of and
assignments to variables returndata and ClientForm.ReturnData.


"Brett" <no@xxxxxxxx> wrote in message
news:%23HIUlxuQFHA.1476@xxxxxxxxxxxxxxxxxxxxxxx
> The following conditional executes given the values listed. I've listed
> the values below for each of these variables. How is it that the
> conditional still executes:
>
> If (returndata.ToString <> "") And (returndata.ToString <>
> ClientForm.ReturnData) Then
>
> returndata.ToString = ""
> ClientForm.ReturnData = Nothing
>
> The first test fails and the second passes. The AND should then fail
> correct?
>
> Thanks,
> Brett
>


.