Arrays

Discussion in 'ASP General' started by Eugene Anthony, Nov 19, 2005.

  1. <%
    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 ***
     
    Eugene Anthony, Nov 19, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alexandra Stehman
    Replies:
    5
    Views:
    30,759
    Chris Smith
    Jun 17, 2004
  2. Bill Reyn
    Replies:
    3
    Views:
    2,281
    Bob Hairgrove
    Jun 22, 2004
  3. Mantorok Redgormor

    initializing arrays of arrays

    Mantorok Redgormor, Sep 10, 2003, in forum: C Programming
    Replies:
    4
    Views:
    579
  4. kelvSYC

    Arrays and Pointers to Arrays

    kelvSYC, Sep 26, 2003, in forum: C Programming
    Replies:
    2
    Views:
    390
  5. Philipp
    Replies:
    21
    Views:
    1,157
    Philipp
    Jan 20, 2009
Loading...

Share This Page