Arrays

Discussion in 'ASP General' started by Naveen, Jan 12, 2004.

  1. Naveen

    Naveen Guest

    How can display unique values from an array. I dont want
    to loop thru all the values and do it.
    Is there a better way?.

    Naveen
    Naveen, Jan 12, 2004
    #1
    1. Advertising

  2. The only way to get to all the values in an array is to loop through it.
    Sort the array by the column you want to pull the unique values from, loop
    the array comparing the next with the last and only caching each new value
    as you find it.


    "Naveen" <> wrote in message
    news:065801c3d952$5aa5b220$...
    > How can display unique values from an array. I dont want
    > to loop thru all the values and do it.
    > Is there a better way?.
    >
    > Naveen
    William Morris, Jan 12, 2004
    #2
    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,580
    Chris Smith
    Jun 17, 2004
  2. Bill Reyn
    Replies:
    3
    Views:
    2,244
    Bob Hairgrove
    Jun 22, 2004
  3. Mantorok Redgormor

    initializing arrays of arrays

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

    Arrays and Pointers to Arrays

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

Share This Page