Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I create a collection in VBscript (like in VB) 1

Status
Not open for further replies.

juggyjuggy

Programmer
Mar 24, 2002
7
BE
Hi,
I try something like this :

Dim my_collection as collection (doesn't work)

or

Dim my_collection
Set my_collection = server.Createobject("collection")

None of this works :(
Can someone tell me the right code please ?
Thanks,
JuGgY ...
 
Try the "Scripting.Dictionary" object.

Scripting - CompareMethod property not documented here.

VB6 - better Doc

Dim dctD
Set dctd = CreateObject("Scripting.Dictionary")
dctd.CompareMethod = 1 ' Case Insensitive Keys
' do not need ADD
dctd("Name") = "John"
You can use For /Each
Generate Forms/Controls Resizing/Tabbing Class
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top