The use of Items method in VBS
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!