Photo Gallery
Member List
Search
Calendars
FAQ
Ticket List
Log Out
Forums
Register
Login
My Profile
Inbox
Address Book
My Subscription
My Forums
Compare elements of two dictionaries object
Logged in as: Guest
arrSession:exec spGetSession 2,2,65114
Active Users: There are
0
members and
0
guests.
Users viewing this topic: none
Printable Version
All Forums
>>
[Scripting]
>>
WSH & Client Side VBScript
>> Compare elements of two dictionaries object
Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page:
[1]
Login
Message
<< Older Topic
Newer Topic >>
Compare elements of two dictionaries object -
10/15/2008 7:30:06 AM
shahid09
Posts: 58
Score: 0
Joined: 1/22/2007
Status:
offline
Hi All,
I would like to know is it possible to compare elements of two dictionaries ?
One more question can i store dictionary object like this
oActDict.add "ServiceType"& i, rs4.fields(0) ' Loop by changing incrementng i
If yes, how can i retrieve value of this key becuase when i use following command
msgbox oActDict("ServiceType1").value msgbox oActDict("ServiceType2").value msgbox oActDict("ServiceType3").value
I am getting an error that "Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record."
Thanks,
Shahid
Post #: 1
RE: Compare elements of two dictionaries object -
10/15/2008 7:37:50 AM
dm_4ever
Posts: 2669
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status:
offline
You should be able to do something like that
Option Explicit Dim objDict : Set objDict = CreateObject("Scripting.Dictionary") Dim intCount For intCount = 0 To 5 objDict.Add "ServiceType" & intCount, intCount * 5 Next Dim strKey For Each strKey In objDict.Keys WScript.Echo strKey & vbTab & objDict(strKey) Next
...your error maybe with something else
_____________________________
dm_4ever
My philosophy:
K.I.S.S - Keep It Simple Stupid
Read Me:
http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff:
http://www.visualbasicscript.com/m_47117/tm.htm
(in reply to
shahid09
)
Post #: 2
If you found our site useful please link to us
<a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>
.
All Forums
>>
[Scripting]
>>
WSH & Client Side VBScript
>> Compare elements of two dictionaries object
Page:
[1]
Jump to:
Select a Forum
All Forums
----------------------
[Welcome]
- - Forum Rules
- - Test Posting Messages
- - New Member Area/Introduction
[Scripting]
- - WSH & Client Side VBScript
- - WSH & Client Side VBScript Tutorial
- - Post a VBScript
- - Windows PowerShell
- - ASP
- - ASP.NET
- - Windows Script Components
[General Forum]
- - Other Programming/Scripting Languages
- - Suggestions & Feedback
- - Off-Topic Lounge
New Messages
No New Messages
Hot Topic w/ New Messages
Hot Topic w/o New Messages
Locked w/ New Messages
Locked w/o New Messages
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
Forum Software ©
ASPPlayground.NET
Advanced Edition
2.5.5 ANSI