GetValueNames
Previous  Next

Returns an array filled with the names of all values in the specified subkey.
Syntax: GetValueNames (SubKey As String) As String()

Example:
'Add a Registry object named reg.
Sub Globals
      dim names(0) As String
End Sub

Sub App_Start
      reg.New1
      reg.RootKey(reg.rtCurrentUser)
      names() = reg.GetValueNames("Software\My Application")
      for i = 0 to ArrayLen(names())-1 'Show all values found
            msgbox(names(i))
      next
End Sub