Returns the name of the character set the current table or a specified table is using. If no table is open and you issue CHARSET( ) without an argument, it returns the global character set in use.

Syntax

CHARSET([<alias>])

<alias>

A work area number (1 through 225), letter (A through J), or alias name. The work area letter or alias name must be enclosed in quotes.

Description

Use CHARSET( ) to learn which character set the current table or a specified table is using. If you don't pass CHARSET( ) an argument, it returns the name of the character set of the current table or, if no tables are open, the global character set in use. CHARSET( ) also returns information on Paradox and SQL databases.

The character set in which a table's data is stored depends on the language driver setting that was in effect when the table was created. With dBASE Plus, you can choose the language driver that applies to your dBASE Plus data in the [CommandSettings] section in the PLUS.ini file.

The value CHRSET( ) returns is a subset of the value LDRIVER( ) returns. For more information, see LDRIVER( ).