Click or drag to resize

SetNatDLL Function

X#
Activate a new DLL for nation-dependent operations and messages.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 FUNCTION SetNatDLL(
	cNewDLL AS STRING
) AS LOGIC
Request Example View Source

Parameters

cNewDLL
Type: String
The name of the new DLL to use.

Return Value

Type: Logic
TRUE if successful; otherwise, FALSE.
Remarks
The default library for nation-dependent operations is VO28NAT.DLL. SetNatDLL() disables the default DLL and loads the specified DLL cNewDLL which is active until the next call to SetNatDLL().
Remarks
In Visual Objects the nation DLL is an external DLL. For X# there are no separate nation DLL. The nation support code is integrated in XSharp.Core.DLL. For compatibility you can still use the SetNatDLL() function to switch to another nation module.
The available nation modules are (just like in Visual Objects):
"BRAZIL", "CROATIA", "CZECH852", "CZECH895", "DANISH", "DUTCH", "FINNISH", "FRENCH", "GENERIC", "GERMAN", "GERMAN2", "HUNG852", "HUNGCWI", "ITALIAN", "NORWEGN", "POL-ISO", "POL-MAZ", "POL852", "PORT850", "PORT860", "ROMANIA", "RUSSIAN", "SERBIA", "SL-W-95", "SL-W-AS7", "SL-W-EE", "SLOV852", "SLOV895", "SPANISH", "SWEDISH", "TURKISH", "UK"
You may specify a DLL name with full path. The Runtime will strip the path and extension from the file name and will look for one of the names listed above.
The nation DLL name is NOT case sensitive.
Examples
This example sets DLL CAVONT20.GER for nation-dependent operations:
X#
1? GetNatDLL()                // VO28NAT.DLL
2? SetNatDLL("GERMAN.DLL")        // .T.
3? GetNatDLL()                // GERMAN.DLL
See Also