Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 24th, 2003, 05:37 AM
Registered User
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to higgsy
Default Searching ASP Arrays


Its good to have p2p back at last.....Ive got a problem with arrays, ive never really needed to use them before. Ive got an array that holds a list of ID's from a database which is populated using the following script.....

Dim counter
counter = 0
Dim arrBuddies()
ReDim arrBuddies(Cint(rsBuddies.RecordCount))
While Not rsBuddies.Eof
    arrBuddies(counter) = rsBuddies("UserIDBuddy")
    Response.Write(arrBuddies(counter) & "<br>")
    counter = counter + 1

This code works fine, however what i need to be able to do is to search the array for a particular ID and return a value if the ID already exists in the array.

Does anyone know how to do this???

Thanks in advance

Al Higgs

Similar Threads
Thread Thread Starter Forum Replies Last Post
asp searching and recordset paging kumiko Classic ASP Basics 0 May 22nd, 2007 03:46 AM
ASP Arrays anna_benning Classic ASP Databases 6 February 25th, 2007 11:57 AM
Sending arrays to ASP chrscote Classic ASP Basics 1 July 22nd, 2005 07:02 PM
searching function using asp code ernafarizan Classic ASP Professional 1 May 8th, 2005 09:56 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.