pb1
01-18-2008, 01:33 AM
I'm new to the use of Dictionary object.
To begin, I initiated the Visual Basic 6.0(SP6) as follows:
Project -> Reference -> Microsoft Script Control 1.0
Project -> Components -> Microsoft Script Control 1.0
In my Sub I have this coding
Dim Dict As New Dictionary
In the run time I got the following compiler error message:
[Invalid use of New keyword] - highlighting "Dict As New Dictionary"
then I changed to this coding
Set Dict = CreateObject(Scripting.Dictionary)
Again another compiler error message came up:
[variable not defined] - highlighting "Scripting"
I believe there is some fundamental setup missing. Please help!
To begin, I initiated the Visual Basic 6.0(SP6) as follows:
Project -> Reference -> Microsoft Script Control 1.0
Project -> Components -> Microsoft Script Control 1.0
In my Sub I have this coding
Dim Dict As New Dictionary
In the run time I got the following compiler error message:
[Invalid use of New keyword] - highlighting "Dict As New Dictionary"
then I changed to this coding
Set Dict = CreateObject(Scripting.Dictionary)
Again another compiler error message came up:
[variable not defined] - highlighting "Scripting"
I believe there is some fundamental setup missing. Please help!