RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegistry.ValueExists Method

Determines if a specified data value exists for the current key.

Pascal
function ValueExists(const Name: string): Boolean;
C++
__fastcall Boolean ValueExists(const AnsiString Name);

Call ValueExists to determine if a particular data item exists in the registry. Calling ValueExists is especially useful before calling other TRegistry methods that operate only on existing data items. 

Name is the name of the data value for which to check. 

ValueExists returns true if a match if found, false otherwise. 

 

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