MOTOBIT.COM - ASP upload, IIS utility numValues Method of Key class

Method | Member of  RegEdit.Key | Changes | Purchase | Download

Description

The number of values associated with the key.

Syntax

vnumValues = Key.numValues

Returns

Long

Remarks

numValues property uses RegQueryInfoKey API function.

Examples

List of shell extensions.

  'Get RegEdit.Server object
  Set S = CreateObject("RegEdit.Server")

  Set Key = S.GetKey("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved")

  Wscript.Echo "Number of shell extensions: " & Key.numValues

  For Each Value In Key.Values
      Wscript.Echo Value.Value
  Next

See also

Values.Count

Other links for numValues

Methods of Key class

Close, CreateKey, Delete, ExistsKey, ExistsValue, Flush, numSubKeys, numValues, Save

Properties of Key class

Class, hKey, LastWriteTime, Name, SubKeys, Values

RegEdit.Key

One registry key.

RegEdit

Intuitive, easy to use COM interface to windows registry. Set of classes to read/enumerate/modify windows registry keys and values from ASP, VBS and T-SQL.

© 1996 - 2009 Antonin Foller, Motobit Software | About, Contacts | e-mail: info@pstruh.cz