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

Visual interface design, VISUAL INTERFACE DESIGN Instead of the graphic...

VISUAL INTERFACE DESIGN Instead of the graphic nature of the program, only the visualness of the inter action is important. The program must not focus on the GUI. On the other

Adding records - data control, Adding Records: 1. As in the earlier ca...

Adding Records: 1. As in the earlier case Set the DatabaseName property as "C:\ex.mdb", now Set the Record Source for the data control as Customer and Set the Record Type to 0

Application for loan, Scenario GetLoan is a new company that will provid...

Scenario GetLoan is a new company that will provide a loan of money to individual members of the public.   There are two types of loan to be offered: Secured Loan wher

Hangman, how to add the hangman images

how to add the hangman images

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

HOW TO SOLVE ORDINARY DIFFERENTIAL EQUETION IN VISUAL BASIC PROGRAMMING

File system controls, FILE SYSTEM CONTROLS There are 3 file system cont...

FILE SYSTEM CONTROLS There are 3 file system controls as shown in figure. The drive list box, directory list box & the file list box. The drive list box control is used to exhi

Employee data, Part 1: Create an application that allows the user to enter ...

Part 1: Create an application that allows the user to enter the following employee data: First Name, Middle Name, Last Name, Employee Number, Department, Telephone Number, Telephon

Associating images to toolbars - visual basic, Associating Images to Toolba...

Associating Images to Toolbars: 1. Add an Image list to your form from the tool box. 2. Pick the custom property of the image list. 3. Click the images tab. 4. Select

#simple interest using pseudocode and flowcharts, simple interest using flo...

simple interest using flowchart and psuedocode using the formular s= x + nrx

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