Creating a collection

pts.
Tags:
Development
I want to create a collection that handels more than just add and remove, but sort according to different criterias. THese should be passed maybe as paramarray Using VB6

Answer Wiki

Thanks. We'll let you know when a new response is added.

Fahim,

You can sub-class the collection object and end up with your own collection class object to which you would add the methods of the various sorts you want.

Or, you could just have a module with like-prefixed subs/functions that would manipulate the key and item/tag elements in the way you want. These could also accept the parms to control them.

You couldn.t “dot” them for drop-down access, but they would all have the same prefixes that would lend themselves to easy calls from another sub that was operating on the collection.

Good luck, :) Gene

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Fahim001
    Thanks, Your reply is a great help. I resolved it by creating a collection of a class that handles all the functionalities I was looking for. Thanks a million
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following