String Dictionary - Codoid
Select Page
Codoid Blog

String Dictionary

Irrespective of the business that your client is in, marketing is an integral part of their operations. In fact, in this day and age of social.

StringDictionary is a Hash Table; it is designed to accept only strings. It could be used to handle large amounts of strings and retrieves item very quickly since it is a Hash Table. Let us see how we can add items to the StringDictionary object and retrieve it.

Code

Dim oStringDict

Set oStringDict=DotNetFactory.CreateInstance("System.Collections.Specialized.StringDictionary")

oStringDict.Add "City1","London"
oStringDict.Add "City2","Paris"

Msgbox oStringDict.Item("City1")

Set oStringDict=Nothing
  

Tags

Dictionary Object, .net StringDictionary

Written By

Submit a Comment

Your email address will not be published. Required fields are marked *


StringDictionary is a Hash Table; it is designed to accept only strings. It could be used to handle large amounts of strings and retrieves item very quickly since it is a Hash Table. Let us see how we can add items to the StringDictionary object and retrieve it.

Code

Dim oStringDict

Set oStringDict=DotNetFactory.CreateInstance("System.Collections.Specialized.StringDictionary")

oStringDict.Add "City1","London"
oStringDict.Add "City2","Paris"

Msgbox oStringDict.Item("City1")

Set oStringDict=Nothing
  

Tags

Dictionary Object, .net StringDictionary