$DBCharSet

Indicates the character set used by the application database.

Syntax

$dbcharset

Return Value

1 for DOS or 2 for ANSI, depending on the character set specified when the database was initialized. Cannot be reset by an application program.

Description

When you initialize a new application database, the new database (ZIMINIT) administrative utility requires you to specify the character set to be used. Once the database has been initialized, the character set cannot be changed.

During an application session, the $DBCharSet system variable contains the name of the character set used by the current application database.

Example

DOS is a Zim constant with a value of 1, and ANSI is a Zim constant with a value of 2, so you could use the following:

> if $DBCharSet=DOS
   ...
   endif

 

Related Topics