MOTOBIT.COM - ASP upload, IIS utility Values Class, Collection of value objects of one registry key., Member of RegEdit

Member of  RegEdit Use Values object | Changes | Purchase | Download

Description

Collection of value objects of one registry key.

Object model

Values - Collection of value objects of one registry key. (Values property, Values for the specified registry key.)
 
Value - Represents one value from windows registry (Item property, Returns a single Value object from the Values collection.)

Properties

CountNumber of values in the collection.
Long, RO
ItemReturns a single Value object from the Values collection.
Value, RO

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")

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

Set a specific value

 
  'Get RegEdit.Server object
  Set S = CreateObject("RegEdit.Server")
  
  'Get a key
  Set Key = S.GetKey("HKLM\SOFTWARE\MyFirstKey")

  'Set binary value - type exactly specified
  Key.Values("BinaryData").SetValue ChrB(65) & ChrB(0) & ChrB(66) & ChrB(0), vtBinary

Used in

Key.Values

Other links for Values class

ActiveX RegEdit classes

Server, Keys, Key, Values, Value

ActiveX RegEdit enums

ValueType, ReservedKeys, LogonTypes, AccessRights

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