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

Control statements, CONTROL STATEMENTS   The conditional expression us...

CONTROL STATEMENTS   The conditional expression uses a comparison operator that results in true or false value. If the comparison is valid the outcome is true, or else the out

Recurson, types and concept of recurson

types and concept of recurson

Aim - control statement, Aim: To exhibit what is the day when the seco...

Aim: To exhibit what is the day when the second command button is clicked and to clear the screen when the first command button is clicked. The functioning of this program is

Programming, steps of connecting database from vb6.0

steps of connecting database from vb6.0

How to, need general help in pseudo code

need general help in pseudo code

Input box - dialogue box in visual basic , Input Box: To demonstrate t...

Input Box: To demonstrate the use of the Input Box as shown in figure. Now consider the illustration shown below: 1. Initiate a new project 2. Select the standard exe

Vb script coding conventions, Coding conventions are recommended that may h...

Coding conventions are recommended that may help you write code via Microsoft Visual Basic Scripting Edition. Coding conventions can include the given: Naming conventions for ob

Account Balance, The user has to enter a starting balance, the dollar amoun...

The user has to enter a starting balance, the dollar amount of deposits, and the dollar amount of withdrawals. the program then has to calculate the balance

Create a calculator application, Create a VB calculator application that ap...

Create a VB calculator application that appears as in the screen shots below. The user enters numbers in the textboxes labelled Number 1 and Number 2. When a calculati

Ddx - dialog data exchange, DDX - Dialog Data Exchange: The Data membe...

DDX - Dialog Data Exchange: The Data members can be related with specific controls in the dialog box. When the dialog box is displayed, the DDX will transfer the values into t

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