RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegistry.GetDataSize Method

Returns the size, in bytes, of a specified data value associated with the current key.

Pascal
function GetDataSize(const ValueName: string): Integer;
C++
__fastcall int GetDataSize(const AnsiString ValueName);

Call GetDataSize to determine the size, in bytes, of a data value associated with the current key. ValueName is a string containing the name of the data value to query. 

On success, GetDataSize returns the size of the data value. On failure, GetDataSize returns -1.

Note: If the data value is a string, GetDataSize returns the size of the data value and one extra byte for the terminating null character.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!