The use of Keys method in VBS
This article introduces the relevant knowledge of "the use of Keys method in VBS". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Returns an array containing all the existing keys of the Dictionary object.
Object.Keys
Object should be the name of the Dictionary object.
Description
The following code illustrates how to use the Keys method:
Function DicDemo Dim a _ d _ I 'creates some variables. Set d = CreateObject ("Scripting.Dictionary") d.Add "a", "Athens" 'add keys and items. D.Add "b", "Belgrade" d.Add "c", "Cairo" a = d.Keys' get key. For I = 0 To d.Count-1 'recycle the array. S = s & a (I) & "
"'return the result. Next DicDemo = sEnd Function" the content of "the use of Keys method in VBS" is introduced here. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!