Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

cxSetResourceString(TcxResourceStringID,string) Method

Substitutes a value of the resource string retrieved by the cxGetResourceString function.

#Declaration

Delphi
procedure cxSetResourceString(AResString: TcxResourceStringID; const Value: string);

#Parameters

Name Type Description
AResString TcxResourceStringID

The target resource string identifier.

Value string

The required resource string value.

#Remarks

String constants for DevExpress products are stored as resources. The cxGetResourceString function is used internally to retrieve strings for specific control elements. You can call the cxSetResourceString procedure to substitute a value of a specific resource string during the program execution for localization purposes. Note that a new value does not replace a resource in an executable file.

#Code Example: Localize a Resource String

The following code example specifies a new value for the cxSDatePopupClear resource string in the German language:

cxSetResourceString(@cxSDatePopupClear, 'Löschen');

Note

To easily localize applications that use standard, DevExpress, or other third-party controls to any language supported by Windows, use the TcxLocalizer component.

See Also