vcl-dxcore-dot-cxgetresourcestring-x28-6b9289a4-x29.md
Retrieves a resource string value for the specified resource identifier.
function cxGetResourceString(AResString: TcxResourceStringID): string;
| Name | Type | Description |
|---|---|---|
| AResString | TcxResourceStringID |
A pointer to the source resource string identifier.
|
| Type | Description |
|---|---|
| string |
The resource string value.
|
String constants for DevExpress products are stored as resources. DevExpress controls call the cxGetResourceString function to retrieve strings for each UI element with a caption or label.
To localize an application, you can call the cxSetResourceString procedure to substitute resource string values at runtime.
The following code example specifies a new value for the cxSDatePopupClear resource string in German:
uses
dxCore; // Declares the cxSetResourceString global procedure
// ...
cxSetResourceString(@cxSDatePopupClear, 'Löschen');
#include "dxCore.hpp" // Declares the cxSetResourceString global procedure
// ...
cxSetResourceString(&_cxSDatePopupClear, "Löschen");
Note
To localize applications that use standard, DevExpress, or other third-party controls to any language supported by Windows, use the TcxLocalizer component.
See Also