I have to write something in vbscript that need to use a unique set. I am looking for something akin to Java’s HashSet, is this already in vbscript or do I have to write my own?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s not identical, but VBScript has a Dictionary object which behaves like Java’s Map or Hashtable.
You can use this almost like a HashSet, by just looking up the item as a key in the dictionary and finding if there is any value there. When you want to put something into the set, simply set its value to 1 or anything else.