XL3ResourceLookup

Revision as of 10:21, 11 May 2017 by Antonio.remedios (talk | contribs) (Created page with "In XLCubed Web Edition, returns the text for the specified resource from a .resx file for the current culture. ==Syntax== {{Code|XL3ResourceLookup( ClassKey, ResourceKey )}}...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In XLCubed Web Edition, returns the text for the specified resource from a .resx file for the current culture.

Syntax

XL3ResourceLookup( ClassKey, ResourceKey )

Parameters

Parameter Description
ClassKey The name of the resource file
ResourceKey The key of the desired resource

Installing the Resource File

After creating your .resx resource files, place them in a folder called App_GlobalResources in the XLCubed Web installation folder. For example:

C:\inetpub\wwwroot\XLCubedWeb\App_GlobalResources

The default resources should be stored in a file with just the class key, and language specific versions with the language ID added, for example:
MyLanguageResources.resx - the default resource file
MyLanguageResources.fr.resx - the French language file
MyLanguageResources.de.resx - the German language file

These could then be accessed by using:
=XL3ResourceLookup("MyLanguageResources", "PhraseName")

See Also