Is it possible to have a dictionary of object/classes in vbscript?
For example:
Class employeeclass
Public first, last, salary
End Class
Dim employeedict: Set employeedict = CreateObject("Scripting.Dictionary")
'Loop would be here
Dim employee: Set employee = new employeeclass
With employee
.first = "John"
.last = "Doe"
.salary = 50000
End With
employeedict.Add "1", employee
EDIT The above does work.
(Answering own question)
Yes, its possible to use a dictionary of objects/classes in VBScript. The following is an example for those interested:
Prints out: