Name

LoadResString Function

Syntax

function LoadResString(Rec: PResStringRec): string;

Description

The LoadResString function loads a string resource. When you declare a string with the resourcestring keyword, Delphi automatically creates a string table resource and assigns a unique identifier to the string. The compiler generates code to call LoadResString to look up the string, given the resource identifier.

LoadResString is a real function.

Tips and Tricks

Delphi handles the string resource automatically, so you have no reason to call this function. If you must, you can pass the address of a resourcestring identifier as the argument.

See Also

LoadResourceModule Function, PResStringRec Type, ResourceString Keyword, TResStringRec Type

Get Delphi in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.