Get the App
SLTechnology News&Howtos  ›  Development  › 

The use of Keys method in VBS

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

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!

Tags: Methods content objects arrays more knowledge practicality learning next code variables names dilemmas facts situations articles cases results tapes websites Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi OPPO Reno Linux MariaDB Shulou Technology