For Programmers: Free Programming Magazines  


Home > Archive > ASP > November 2005 > Arrays









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Arrays
Eugene Anthony

2005-11-19, 6:55 pm

<%
openDB()

call updateDB("usp_retrieveOptions",rs)

if not rs.eof AND (UBOUND(Arr)) < CInt(rs("rc")) - 1 then
%>
<tr>
<td width="66">Options</td>
<td width="137">
<select name="select1" class="TextField1">
<%
i = 0

do while not rs.eof

if rs(0) <> Arr(i) then
response.write "<option value=" & rs(0) & ">" & rs(1)
end if

rs.movenext

loop
%>
</select>


I am facing problem is this part:

if rs(0) <> Arr(i) then
response.write "<option value=" & rs(0) & ">" & rs(1)
end if

There is a set of values stored in Arr(). Now if if rs(0) <> Arr()
display in the combo box.

How is it done?

Your help is kindly appreciated.


Eugene Anthony

*** Sent via Developersdex http://www.developersdex.com ***
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com