Progress
Language Reference
DBCODEPAGE Function
Returns, as a character string, the name of a connected database’s code page. (A code page maps each character in a character set to a numeric value.) For a Progress database, DBCODEPAGE returns the code page of the database represented by the integer expression, logical name, or alias. For a non-Progress database, DBCODEPAGE returns the value originally inserted when the schema was created.
There are three possible types of non-Progress code pages:
If any parameter is invalid, it returns the unknown value (?).
SYNTAX
integer-expression
The sequence number of a database the Progress session is connected to. For example, DBCODEPAGE(1) returns information on the first database the Progress session is connected to, DCODEPAGE(2) returns information on the second database the Progress session is connected to, etc. If you specify a sequence number that does not correspond to a database the Progress session is connected to, the DBCODEPAGE function returns the unknown value (?).
logical-name
A character expression that specifies the database by its logical name or alias.
EXAMPLEThis procedure displays the logical name and code page of all connected databases.
NOTE
A database must be connected in order for the DBCODEPAGE function to work as described.
SEE ALSO
ALIAS Function, CONNECT Statement, CONNECTED Function, CREATE ALIAS Statement, CREATE DATABASE Statement, DATASERVERS Function, DBCOLLATION Function, DBRESTRICTIONS Function, DBTYPE Function, DBVERSION Function, DELETE ALIAS Statement, DISCONNECT Statement, FRAME-DB Function, LDBNAME Function, PDBNAME Function, SDBNAME Function
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |