Get the App
SLTechnology News&Howtos  ›  Development  › 

The use of Items method in VBS

Shulou Source: shulou.com Published: 2022-06-03 19:37:59 10月04日 Update

This article mainly explains "the use of Items method in VBS". The explanation content in this article is simple and clear, easy to learn and understand. Please follow the idea of Xiaobian slowly and deeply to study and learn "the use of Items method in VBS" together!

Returns an array containing all the items in the Dictionary object.

object.Items

object Expected the name of the Dictionary object.

description

The following code illustrates how to use the Items method:

Function DicDemo Dim a,d,I,s 'Create some variables Set d = CreateObject("Scripting.Dictionary")d.Add "a","Athens" 'Add keys and items d.Add "b","Grade"d.Add "c","Cairo"a = d.Items 'Get the project. For i = 0 To d.Count -1 'Circular use of arrays. s = s & a(i) & "

" 'Create return string. Next DicDemo = sEnd Function Thank you for reading, the above is the content of "the use of Items method in VBS", after learning this article, I believe that everyone has a deeper understanding of the use of Items method in VBS, and the specific use needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

Tags: Methods projects learning content objects arrays codes variables names characters strings that is ideas situations articles more knowledge knowledge points articles follow Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Docker macOS Linux OPPO Reno