Get the App
SLTechnology News&Howtos  ›  Development  › 

The usage of the VBS property Count

Shulou Source: shulou.com Published: 2022-06-03 19:53:54 10月25日 Update

This article mainly explains "the usage of VBS attribute Count". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the usage of VBS attribute Count.

Returns the number of items contained in a collection or Dictionary object. Read only.

Object.Count

Object can be the name of any collection or object listed in the apply to list.

Description

The following code illustrates how to use the Count property:

Function ShowKeys Dim a, d, I, s' create some variables. Set d = CreateObject ("Scripting.Dictionary") d.Add "a", "Athens" 'add some keys and items. D.Add "b", "Belgrade" d.Add "c", "Cairo" a = d.Keys' get key. For I = 0 To d.Count-1 'repeating array. S = s & a (I) & "

"'create a return string. Next ShowKeys = sEnd Function so far, I believe you have a deeper understanding of the use of" VBS attribute Count ". You might as well do it in practice! here is the website, more related content can go to the relevant channels to query, follow us, continue to learn!

Tags: Properties content objects projects learning practical deeper code interests variables names characters strings practicality practical simple operation arrays methods more friends Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker vpn Microsoft Redmi OPPO Reno