RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegistry.WriteExpandString Method

Stores a string containing unexpanded references to environment variables in a specifically named data value associated with the current key.

Pascal
procedure WriteExpandString(const Name: string; const Value: string);
C++
__fastcall WriteExpandString(const AnsiString Name, const AnsiString Value);

Call WriteExpandString to store a string that contains unexpanded references to environment variables such as "%PATH%". The string is stored in a data value associated with the current key. 

Name is a string containing the name of the data value in which to store data. If Name already exists, its current value is overwritten by WriteExpandString. If Name does not exist, it is created. 

Value is a string value to store in the registry. 

If WriteExpandString fails, an exception is raised.

Note: To write strings that do not contain unexpanded environment variables, use WriteString instead.
 

 

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