Dictionaries

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I have defined a dictionary that has UserName and EMail values being
stored using code similiar to the following:

Set dict1 = CreateObject ("Scripting.Dictionary")
If NOT dict1.exists(UserName) then
dict1.Add UserName,Email
Else
f1.writeline UserName & " is a duplicate"
End If


How would I also retrieve the stored Email value if a UserName is found
to be a duplicate?

.



Relevant Pages

  • Re: [Info-ingres] Re: is there an equivavlent to auto_increment in ingres ?
    ... > differentiate between otherwise duplicate records. ... > insert into blah (username) values; ... Roy Hann (rhann at rationalcommerce dot com) ...
    (comp.databases.ingres)
  • DC GoGo Music
    ... Username: gogofan ... Password: congabeat ... Prev by Date: ...
    (rec.music.funky)
  • Re: Multiple Criteria and return only one match
    ... If there are no duplicate combinations (of username and the other field) you ... or you can build a distinct query on the combinations and then use that as ... and just pull their name once and show it to me. ...
    (microsoft.public.access.queries)
  • Re: MT-NewsWatcher accounts?
    ... create a new account if I want to use another username? ... Perhaps under the menu Special/Personalities, duplicate the one ...
    (comp.sys.mac.system)
  • Re: Form not closing
    ... username and than stop the program. ... Cor ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)