Learnthat.com Free Certification and Computer Online Courses
ThatNetwork.com Internet Media Network Givethat.com free gift ideas Definethat.com - Free technical definitions, define Free Romance Tips, Romantic Tips, Date Ideas Free POD publisher comparison print on demand
Learnthat.com Free A+ Certification, Computer Classes, Certification Courses, Business, Lifestyle, ApplicationsFree business tutorials and definitionsFree certification tutorials and definitionsFree computer and technical tutorials and technical definitionsFree Finance Tutorials and DefinitionsFree House Repair TutorialsFree Lifestyle and Fun Tutorials
  All Online CoursesNew Courses QuickTipsWord DefinitionsSubmit a TutorialLinks
÷ Resources
Home
free tech tutorials
Free Tutorials
free tech tutorials
Certifications
free tech tutorials
Definitions
free tech tutorials
Resources/Links
free tech tutorials
Forums
free tech tutorials
Distance Education
free tech tutorials
Highest Rated Tutorials
÷ Popular Tutorials
÷ New Tutorials

Active Server Pages (ASP)

 

Storing Data using the Dictionary Object

The Dictionary object lets you store data using name/value pairs. Unlike arrays, Dictionary objects are not multidimensional; however, they have more functions and can be easier to work with than arrays.

Dictionary Object: Methods

Add

Adds an item to the Dictionary object.

Exists

Indicates whether or not a specified key exists in the Dictionary object.

Items

Returns all the items in the Dictionary object.

Keys

Returns all the keys in the Dictionary object.

Remove

Removes the specified item from the Dictionary object.

RemoveAll

Removes all the items in the Dictionary object.


Dictionary Object: Properties

CompareMode

Specifies or returns the mode used for comparing keys in the Dictionary object.

Count

Returns the number of items in the Dictionary object.

Item

Specifies or returns the value of an item in the Dictionary object.

Key

Specifies a new key value for an item in the Dictionary object.

Once you create a Dictionary object, you add items to the object using the Add method. Items are added in key/name pairs, and can be accessed by their keys:

<%

Dim myDictionary

Set myDictionary=Server.CreateObject("Scripting.Dictionary")

myDictionary.Add "j1","Jane"

myDictionary.Add "j2","Jean"

myDictionary.Add "j3","Jenny"

myDictionary.Add "j4","Joan"

Response.Write(myDictionary.Item("j3")

%>

 

 

by Summer Doucet

Find more free Internet tutorials from Learnthat.com.

More Information:

Help us by rating this tutorial: [---] [--] [+] [++] [+++]
[---] lowest; [+++] highest

 

 

 


Learn: Free Tutorials - Links to Free Tutorials
Understand: Free Technical Definitions - ExplainThat Whitepapers
Use: Certification Section - Discussion Forum

Visit Our Network Sites:

DefineThat.com Technical Defintions Romancetips.com
Free Gift Ideas - GiveThat Planthat.com Free Unique Business Ideas
PublishOnDemand.net - Learn about Print on Demand (POD) - Self Publishing Seekthat.com - Technical Search Engine
ThatNetwork.com  

About Us : Contact Us : Advertise : Privacy Information

© 1998-2004 Learnthat.com