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

External application window position, I have an external application I open...

I have an external application I open from visual studio (excel). I want to reposition where that opens (top, left).. How do I do that?

Vb script, We will discuss scripting language; called VB Script. VBScript i...

We will discuss scripting language; called VB Script. VBScript is Microsoft's scripting language. It enables us to write programs which enhance the power of Web pages by letting us

Data control, DATA CONTROL The data control is used to connect to the d...

DATA CONTROL The data control is used to connect to the database. Three properties are very necessary to connect to the database. The primary property is the database name. You

Dynamic link library - dll , DYNAMIC LINK LIBRARY - DLL   The DLL are ...

DYNAMIC LINK LIBRARY - DLL   The DLL are files which can be called when required by the other program that is running in the computer. The DLL files which support the specific

If then else - control statement, If Then Else: The control statement ...

If Then Else: The control statement If Then Else is used for computing a condition and taking the action based on the condition. If the condition is true then the section will

Visual basic program, Create the flowcharts using MS Visio, MS Excel or MS ...

Create the flowcharts using MS Visio, MS Excel or MS Word to demonstrate the algorithm. Submit your flowchart under the assignment for CH7-4-26 Flowchart. Part Printouts H

Develop a web page for accepting information regarding stock, Develop a web...

Develop a web page that is used for accepting information regarding stocks. Make sure the form carry out the possible validations. The simple instance code below merely illustrates

Gdi object cpen, Illustration of GDI object CPen: 1. Generate a SDI ap...

Illustration of GDI object CPen: 1. Generate a SDI application. And name it as gdipen. 2. Press ctrl (control key) and W altogether to invoke the class wizard. 3. Choose

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

HOW TO SOLVE ORDINARY DIFFERENTIAL EQUETION IN VISUAL BASIC PROGRAMMING

Loop statement from inside the loop, You can exit a Do...Loop using the Exi...

You can exit a Do...Loop using the Exit Do statement. Since usually you desire to exit only in certain situations, such as to ignore an endless loop, you should employ the Exit Do

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