Topic group Related topics

Because some commands behave differently than others when a table language driver differs from the current global language driver, it is often necessary to detect which language driver is assigned to the LDID region of the table file or determine which code page the language driver uses. For example, file and field names may be valid in one language but not in another, or a key field may have characters that are not shared in common between the code pages of the language drivers.

When you use a command to open a table, and that table has a language driver that differs from the global language driver dBASE Plus displays a warning dialog box only if LDCHECK is set to ON (installation default is OFF).

To determine which language driver is recorded in a table LDID region and which code page the driver uses, use the LDRIVER( ) and CHARSET( ) functions:

set ldcheck off // Turns off automatic language driver compatibility checking.

use CLIENTS exclusive

index on COMPANY tag COMPANY

if ldriver( ) == "DB437DE0" // If this is the German language driver...

 seek "Shönberg Systems"  // Searches are OK

else

 if charset( ) == "DOS:437" // If the driver uses Code Page 437...

  warn1.open( ) // Opens a custom warning dialog box.

 else // If the driver doesn't use Code Page 437...

  warn2.open( ) // Opens a different warning dialog box.

 endif

endif