Please enable JavaScript to view this site.

ESL Documentation

ESLLIB Function

Get an external string from any DLL with string resources.

EslXstrFromDLL(STRING_ID, DLL_NAME, NOT_FOUND_MESSAGE)

STRING_ID

The number that identifies the string in the resource file, between 1 and 65535.

DLL_NAME

The name of the DLL with the string resources. The DLL is loaded when it is first used.

NOT_FOUND_MESSAGE

An error message string. If the external string is not found or cannot be loaded for some reason, then this message, with the id number appended to it, is returned. If this string is empty and the external string is not found or not loaded, an empty string is returned, which makes it easy to test for an error.

Description

Load an external string by numeric identifier from any DLL.

If the external string is not loaded, then the NOT_FOUND_MESSAGE, with the id number appended to it, is returned. If that message is empty, then an empty string is returned.

This loads an external string each time it is called. If the same external string is needed frequently, we suggest that you buffer it in a variable after it is loaded.

Example

copy (EslXstrFromDLL(ID, ExtraStringsDLL, ""))

to Message_SV

See Also

EslXstr( ) ESLLIB Function