[thelist] ASP help

Karen J. Bowen lists at miinx.com.au
Tue Sep 10 11:47:01 CDT 2002


Karen J. Bowen wrote:
> The code looks fine, so it sounds like there may be a problem with your
> boolean variables varSub1 and varSub2 & they're both holding True
> regardless...
>

man oh man...

correction to sentence above: '...boolean variables blnSub1 and blnSub2...'

and make the debugging code:

<%
Response.Write "blnSub1 = " & blnSub1 & "<br>"
Response.Write "blnSub2 = " & blnSub2 & "<br>"
Response.End
%>

Which leads me to another thought though, are these 2 variables related?
  I mean, if one is False, is the other one False too?  Or can the other
still be True?  And what do you want to happen in these situation?

Along that line, you may try changing your code to the following, or
playing with variations of this along with your original posted code
depending on your exact problem:

<%
If blnSub1=True Then
  	' snipped code
Else
	If blnSub2=True Then
		' snipped code
	End If
End If
%>

Hope that helps,
Karen
-------
Miinx Design & Development
e :: karen at miinx.com.au
p :: 0413.880.302
w :: www.miinx.com.au





More information about the thelist mailing list