Location: Symbol Reference > Functions > LoadLocalizedString Function
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
LoadLocalizedString Function
Pascal
function LoadLocalizedString(const Index: Cardinal; const PrimaryLanguageId: Word; const SubLanguageId: Word; Instance: HInst = 0): TJwString;
Parameters 
Description 
const Index: Cardinal 
defines the string index to be loaded.  
const PrimaryLanguageId: Word 
defines the primary language id. use PRIMARYLANGID(GetUserDefaultUILanguage), SUBLANGID(GetUserDefaultUILanguage) to get user language.  
const SubLanguageId: Word 
defines the sub language id.  
Instance: HInst = 0 
defines the location of the resource. Can be null to use current module.  

Returns the resource string. 

= APWideChar; end;

LoadLocalizedString loads a string from a resource using a language id.

Exceptions 
Description 
if the resource could not be located.
function JwPWideCharToJwString(const APWideChar: PWideChar): TJwString; begin 
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!