Sideway BICK BlogSideway BICK BLOG from Sideway

A Sideway to Sideway Home

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

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

VBScript Object Properties

Some typical predefined Elements are.

  •  Object:
    •  Count Property
    •  Item Property
    •  Key Property
    •  CompareMode Property

Count Property

last updated 12/9/2017

is to return the read-only number of elements in the associated Collection or Object.

Syntax

objvar.Count

Argument

objvarRequired. The variable name of the associated Object instantance.CountRequired Property Keyword. To specify the Count Property of an Object..Required. The dot notation used to access the Property of an object.

Remarks

  • Count Property is a genetic Property for all being supported Object.
  • Count Property is a read-only property.

Applied to

Dictionary Object, Drives Collection, Files Collection, Folders Collection, Matches Collection

Item Property

last updated 12/9/2017

is to set, if optional itemnew is given, the item of an element with the specified key, or to create if the specified key is not found, an element with key, itemnew, or to return the item with the specified key in associated Dictionary Object.

Syntax

objvar.Item(key)[ = itemnew]

Argument

objvarRequired. The variable name of the associated Object instantance.ItemRequired Property Keyword. To specify the Item Property of an Object.keyRequired. To specify the key used to return the item of the specified key or to set the element with the specified key with the optional itemnew.itemnewOptional. Required for setting the value of item with specified key to itemnew..Required. the dot notation used to access the Property of an object. (…)Required. the brackets to enclose the parameters.=Optionial. required as assigning equal to operator for setting the value of item with specified key to itemnew.

Remarks

  • Item Property is a genetic Property for all being supported Object.
  • Item Property is a read/write property.
  • If key is not found when changing an item, the given key is always created with item value equals to the specified optional itemnew.
  • If key is not found when attempting to return an existing item, the given key is created with empty associated item.

Applied to

Dictionary Object

Key Property

last updated 12/9/2017

is to set the specified key of an element with the specified keynew key, or to create if the specified key is not found, an element with empty item in associated Dictionary Object

Syntax

objvar.Key(key) = keynew

Argument

objvarRequired. The variable name of the associated Object instantance.KeyRequired Property Keyword. To specify the Key Property of an Object.keyRequired. To specify the key used to set or create the key value of the specified key with the keynew.keynewRequired. For setting the value of key to itemnew..Required. The dot notation used to access the Property of an object. (…)Required. The brackets to enclose the parameters.=Required. required as assigning equal to operator for setting the value of key to keynew.

Remarks

  • Key Property is a genetic Property for all being supported Object.
  • Key Property is a write property.
  • ?????If key is not found when changing a key, a new key is always created with empty associated item.?????

Applied to

Dictionary Object

CompareMode Property

last updated 12/9/2017

is to set, if optional comparenew is given, or to return the comparison mode for comparing string keys of associated Dictionay Object.

Syntax

objvar.CompareMode[ = comparenew]

Argument

objvarRequired. The variable name of the associated Object instantance.CompareModeRequired Property Keyword. To specify the CompareMode Property of an Object.comparenewOptional Setting. for setting the CompareMode to comparenew..Required. The dot notation used to access the Property of an object. =Required. required as assigning equal to operator for setting CompareMode to comparenew.

Settings

CompareMode Setting

comparenewDescription0Perform a binary comparison.1Perform a textual comparison.2Database>2 used to refer to comparisons using specific Locale IDs (LCID).

Remarks

  • CompareMode is a genetic Property for all being supported Object.
  • CompareMode Property is a read/write property.
  • An error occurs if trying to change the comparison mode of a Dictionary object that already contains data.

Applied to

Dictionary Object

Sideway BICK Blog

10/05


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