Re: How is this conditional able to execute?
- From: Adam Goossens <adam.goossens@xxxxxxxxx>
- Date: Sun, 17 Apr 2005 20:29:27 +0930
Brett,
Set a breakpoint on that If line. When it's hit, pull up the Immediate Window (Ctl + Alt + I) and enter the following:
?(returndata.ToString <> "") And (returndata.ToString <> ClientForm.ReturnData)
Include the question mark at the beginning of the line.
If that evaluates to False, you know the conditional isn't executing.
If it evaluates to True, test each individual expression. The only way that And will work is if both expressions evaluate to true. There must be something else going on.
Let us know how you go.
Regards, -Adam.
Brett wrote:
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
.
- Follow-Ups:
- Re: How is this conditional able to execute?
- From: Brett
- Re: How is this conditional able to execute?
- From: Brett
- Re: How is this conditional able to execute?
- References:
- How is this conditional able to execute?
- From: Brett
- How is this conditional able to execute?
- Prev by Date: Re: mysql date format
- Next by Date: Re: "Too many automatic redirections attempted" exception
- Previous by thread: Re: How is this conditional able to execute?
- Next by thread: Re: How is this conditional able to execute?
- Index(es):