Skip to content

LongestValueLength - cRegistry

Returns the length of the longest Value name for the currently open Key

Type: Function
Return Data Type: Integer

Syntax

Function LongestValueLength Returns Integer

Call Example

Get LongestValueLength to IntegerVariable

Description

The LongestValueLength function returns the length of the longest Value name for the currently open Key. Use LongestValueLength when you need to know how many characters the longest Value name has. This is typically only used when you need to make low-level Windows API calls.

Return Value

Rerursn the number of bytes in the longest name of all the Values in the open Key