$DBCharSet
Welcome to our Knowledge Base
Documentation | Blog | Demos | Support
< All Topics
Print
$DBCharSet
0 out of 5 stars
5 Stars | 0% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
Indicates the character set used by the application database.
Syntax
$dbcharset
Return Value
2 for ANSI or 3 for UTF-8, 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 database (ZIMBOOT) 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
ANSI is a Zim constant with a value of 2, so you could use the following:
if $DBCharSet = ANSI ... endif
See Also
Updated
ByJason Lee
Was this article helpful?
0 out of 5 stars
5 Stars | 0% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
5