System.Registry.getValueNames() This page was last modified over 30 day(s) ago and has 1 comment(s)


Back to System.Registry Class Summary

Availability
Windows

Usage
mdm.System.Registry.getValueNames(keyBranchID:Number, keyName:String):String

Parameters
keyBranchID:Number - Branch key ID

keyName:String - Key name to search

Returns
A String

Description
Returns an array of all the value names found in the specified location.

Notes
The key branch ID can be:

'1' - HKEY_CLASSES_ROOT
'2' - HKEY_CURRENT_USER
'3' - HKEY_LOCAL_MACHINE
'4' - HKEY_USERS
'5' - HKEY_CURRENT_CONFIG

Example Code
var valueNames:Array = mdm.System.Registry.getValueNames(2, "\\SOFTWARE\\NewKey\\SubKey");
mdm.Dialogs.prompt(valueNames.toString())

mdm.System.Registry Class Example Downloads
No Example Downloads Available


User Comment by JayKay on 12th November 2013 - 15:34
Note that getValueNames doesn't return an array, but you can split the string to get an array of valuenames

Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page