Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The usage of the VBS property Count

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report