RegistryItem.Child

From Real Software Documentation

Jump to: navigation, search
Method

RegistryItem.Child ( Name as String ) As RegistryItem

Returns the child named as a RegistryItem. Returns a RegistryItem.

// get a registry key
dim reg as new RegistryItem("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion")

dim lines() as string

// now we look on all child keys
dim u as integer = reg.FolderCount-1
for i as integer = 0 to u
lines.Append "Child: "+reg.item(i).path
next

// and display the pathes in a dialog box
MsgBox Join(lines,endofline)
Personal tools