RESOURCE( )
Topic group Related topics Example
Returns a character string from a DLL file.
Syntax
RESOURCE(<resource id>, <DLL filename expC>)
<resource id>
A numeric value that identifies the character string resource.
<DLL filename expC>
The name of the DLL file.
Description
Use RESOURCE( ) to generate a character string from a resource in a DLL file. The character string must be less than 32K; a character string longer than this is truncated.
RESOURCE( ) is often useful for internationalizing applications without changing program code. For example, you can store in a DLL file all character strings that might need translation from one language to another, and your application can retrieve them at run time with the RESOURCE( ) function. To modify the application for another language, translate the strings and store them in a new DLL file, in the same order and with the same resource IDs as their counterparts in the original DLL file. Then substitute the new DLL for the original one.