?
Solved

Using collection object in ASP

Posted on 2003-02-25
3
Medium Priority
?
202 Views
Last Modified: 2010-04-07
Hi,

I am trying to use collection class in my WindowsScripting Component to fetch the record set from the database, but it didnt work. Can any buddy tell me how to use collection class in ASP.

Cheers
Srinivas
0
Comment
Question by:Chintapalli
2 Comments
 

Accepted Solution

by:
Sejka earned 200 total points
ID: 8025958
create class derived from "CollectionBase" class
and add your own methods for inserting/removing/serching items to collection
for ex. :
public class myCollection : CollectionBase
{
 public PTValueCollection()
 {
 }
 public myValue this[string Name]
 {
  get
   {
   return FindVal(Name);
   }
  set
   {
   SetVal(Name,value);
   }
 }
 private myValue FindVal(string Name)
 {
  myValue  tmp;
  for(int i=0;i<List.Count ;i++)
  {
  tmp = (myValue ) List[i];
  if(tmp.Name == Name)
    return tmp;
  }
  return null;
 }
}

public class myValue
{
  public PTValue()
  {
  }
  public string Name;
  public string Value;
}
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 9305696
This question has been classified abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.

<note>
Unless it is clear to me that the question has been answered I will recommend delete.  It is possible that a Grade less than A will be given if no expert makes a case for an A grade. It is assumed that any participant not responding to this request is no longer interested in its final disposition.
</note>

If the user does not know how to close the question, the options are here:
http://www.experts-exchange.com/help/closing.jsp


Cd&

0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…
Suggested Courses
Course of the Month8 days, 14 hours left to enroll

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question