CountOfValues - cRegistry
Returns the number of Values that exist for the Key that is currently open
Type: Function
Return Data Type: Integer
Syntax
Function CountOfValues Returns Integer
Call Example
Get CountOfValues to IntegerVariable
Description
Use the CountOfValues function to determine how many Values exist within the Key that you have open.
Use cRegistry.pkg
Object oRegistry is a cRegistry
Procedure DoShowCountOfValues
Boolean bOpened
// Open the Key...
Get OpenKey "Software\Microsoft\Notepad" To bOpened
If bOpened Begin
Showln 'Count=' (CountOfValues(self))
Send CloseKey // must close all open Keys
End
End_Procedure
End_Object
Send DoShowCountOfValues of oRegistry
See Also
Return Value
The number of Values in the Key