Sideway BICK BlogSideway BICK BLOG from Sideway

A Sideway to Sideway Home

Link:http://output.to/sideway/default.asp?qno=180500009

Script, Scripting Language, VBScript elements, Server-Side VBScript Object Element Method

VBScript Object Methods

Some typical predefined Elements are.

  •  Object:
    • Exists Method
    • Items Method
    • Keys Method
    • Remove Method
    • RemoveAll Method
  • Dictionary Object:
    • Add Method

Add Method

last updated 12/9/2017

is to add a given key and item pair to the associated Dictionary Object.

Syntax

dictobjvar.Add key, item

Argument

dictobjvarRequired. Must be the variable name of a Dictionary Object.AddRequired Method Keyword. To specify the Add Method of a Dictionary Object.keyRequired. The key associated with the item being added.itemRequired. The item associated with the key being added..Required. the dot notation used to access the Method of an object.,Required. the delimiter to separate the key and item parameters.

Remarks

  • An error occurs if the key already exists.

Applied to

Dictionary Object

Exists Method

last updated 12/9/2017

is to return a Boolean value indicating the given key exist with True or does not exist with False.

Syntax

objvar.Exists(key)

Argument

objvarRequired. the variable name of the associated Object instantance.ExistsRequired Method Keyword. to specify the Exists Method of an Object.keyRequired. to specify the key that being searched for in the object..Required. the dot notation used to access the Method of an object.(…)Required. the brackets to enclose the key.

Remarks

  • Exists Method is a genetic Method for all being supported Object.

Applied to

Dictionary Object

Items Method

last updated 12/9/2017

is to return an array containing all existing items of the associated Dictionary Object.

Syntax

objvar.Items()

Argument

objvarRequired. the variable name of the associated Object instantance.ItemsRequired Method Keyword. to specify the Items Method of an Object..Required. the dot notation used to access the Method of an object.(…)Required. the brackets to enclose any needed parameter.

Remarks

  • Items Method is a genetic Method for all being supported Object.

Applied to

Dictionary Object

Keys Method

last updated 12/9/2017

is to return an array containing all existing keys of the associated Dictionary Object.

Syntax

objvar.Keys()

Argument

objvarRequired. The variable name of the associated Object instantance.KeysRequired Method Keyword. To specify the Keys Method of an Object..Required. the dot notation used to access the Method of an object.(…)Required. the brackets to enclose any needed parameter.

Remarks

  • Keys Method is a genetic Method for all being supported Object.

Applied to

Dictionary Object

Remove Method

last updated 12/9/2017

is to remove an element with the specified key from an associated Dictionary Object.

Syntax

objvar.Remove(key)

Argument

objvarRequired. The variable name of the associated Object instantance.RemoveRequired Method Keyword. To specify the Remove Method of an Object.keyRequired. To specify the Key of the element of an Object to be removed..Required. the dot notation used to access the Method of an object.(…)Required. the brackets to enclose the key.

Remarks

  • Remove Method is a genetic Method for all being supported Object.
  • An error occurs if the specified key does not exist.

Applied to

Dictionary Object

RemoveAll Method

last updated 12/9/2017

is to remove all elements of the associated Dictionary Object.

Syntax

objvar.RemoveAll()

Argument

objvarRequired. The variable name of the associated Object instantance.RemoveAllRequired Method Keyword. To specify the RemoveAll Method of an Object..Required. the dot notation used to access the Method of an object.(…)Required. the brackets to enclose any needed parameter.

Remarks

  • RemoveAll Method is a genetic Method for all being supported Object.

Applied to

Dictionary Object

Sideway BICK Blog

09/05


Copyright © 2000-2020 Sideway . All rights reserved Disclaimerslast modified on 26 January 2013