Methods - vbscript dictionary object, Visual Basic Programming

Assignment Help:

Methods: VBScript Dictionary Object

Method

Description

Add Method

Adds a key, item pair.

Exists Method

Indicates if a particular key exists.

Items Method

Returns an array having all items in a Dictionary object.

Keys Method

Returns an array having all keys in a Dictionary object.

Remove Method

Eliminate key, item pair. Properties: VBScript Dictionary Object

Syntax

Object. Add key, item

Object

The name of a Dictionary object. required

Key

The key related with the item being added. Required.

Item

The item related with the key being added. required

Remarks

An error takes place if the key already exists.

In the cmdAdd_onClick process this method is used to add the Keys and Items to the Dictionary object.

Exists Method

Returns True if a particular key exists in the Dictionary object, False if it does not.

 

Syntax

object.Exists(key)

Object

The name of a Dictionary object. required.

Key

The key value being discovered for in the Dictionary object. required.

Refer above coding for the example. In the cmdExists_onClick process this method is utilized to verify the existence of any Key value in the Dictionary object.

Items Method

Returns an array having all the items in Dictionary object.

Syntax

object.Items

Object

The name of a Dictionary object. Required.

Refer to above coding for the example code. In the cmdAdd_onClick procedure this method is utilized to retrieve the items in array variable.

Keys Method

Returns an array having all existing keys in a Dictionary object.

Syntax

object.Keys

Object

The name of a Dictionary object. Required.

Refer to above coding for example code. In the cmdKeys_onClick procedure this method is utilized to retrieve the Keys in the array variable.

Remove Method

Eliminate a key, item pair from a Dictionary object. An error take place if the particular key, item pair does not exist.

Syntax

object.Remove(key)

Object

The name of a Dictionary object. required

Key

The Key associated with the key-item pair you want to remove from the

Dictionary object. required

Refer to above given code for example code. In the cmdRemove_onClick process this technique is utilized to eliminate the item from the dictionary object.


Related Discussions:- Methods - vbscript dictionary object

MATHEMATICS PROJECT, HOW TO SOLVE ORDINARY DIFFERENTIAL EQUETION IN VISUAL ...

HOW TO SOLVE ORDINARY DIFFERENTIAL EQUETION IN VISUAL BASIC PROGRAMMING

Looping, how to make logic of o program and how to use loop

how to make logic of o program and how to use loop

Vbscript dictionary object properties, Just like normal objects Dictionary ...

Just like normal objects Dictionary object also has definite properties. These properties can be set to any valid value & can be retrieved as and while required. Pr

Software with inappropriate behavior - basics of gui design, Software With ...

Software With Inappropriate Behavior: You would save a document; print it, and then you'll try to close it. The program will ask you if you want to save. This is because; the

Student record management system, i need your help in designing and coding ...

i need your help in designing and coding a student record management system

Multiple document interface (mdi) windows , MULTIPLE DOCUMENT INTERFACE (MD...

MULTIPLE DOCUMENT INTERFACE (MDI) WINDOWS   The SDI (Single document interface) supports one open window or document at a particular time. Microsoft's notepad and paint are il

Explain class module and standard module, Difference between Class Module a...

Difference between Class Module and Standard Module? Standard module: -This place for variable declarations,procedures etc.& it can accessed these procedures in whereve

Number property, Returns or sets a numeric value indicating an error. Numbe...

Returns or sets a numeric value indicating an error. Number is the Err object's default property. While returning user-defined error from an Automation object, set Err.Number throu

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd