You win! ;)
-----Original Message-----
From: Kuminda Chandimith [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 20 augustus 2002 12:06
To: ActiveServerPages
Subject: RE: The IF Statement
do you mean Like this ..??
<%
if blnGotRows then
' Loop around filling the table
For intCounter = 0 to intMaxCount
%>
<option value="<%Response.Write
strRecordArray(0,intCounter)%>">
<%Response.Write strRecordArray(0,intCounter)%>
</option>
<%
Next
end if
%>
If its a large chunk of code I'd put it in to a sub or a function.
HTH
Kuminda Chandimith
Sr. Technical Consultant
Ducont.com FZ-LLC
Tel: + 971-4-3913000 Ext 237
Fax: +971-4-3913001
http://www.ducont.com
-----Original Message-----
From: Alex Elger [mailto:[EMAIL PROTECTED]]
Sent: 20 August 2002 13:56
To: ActiveServerPages
Subject: The IF Statement
Does anyone know how to do an if on a large piece of asp code?
for example i need to be able to write this:
start
<% ' Loop around filling the table
For intCounter = 0 to intMaxCount
%>
<option value="<%Response.Write
strRecordArray(0,intCounter)%>">
<%Response.Write strRecordArray(0,intCounter)%>
</option>
<%
Next%>
end
if the blnGotRows is True.
Thanks
Alex Elger
---
You are currently subscribed to activeserverpages as:
[EMAIL PROTECTED]
To unsubscribe send a blank email to
%%email.unsub%%
---
You are currently subscribed to activeserverpages as:
[EMAIL PROTECTED]
To unsubscribe send a blank email to
%%email.unsub%%
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
the latest anti-virus software for the presence of computer viruses.
www.motiv.nl
**********************************************************************
---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]