Progress
Language Reference


DBNAME Function

Interfaces
OS
SpeedScript
All
All
Yes

Returns, as a character string, the name of the logical database currently in use or the name of your first connected database.

SYNTAX

DBNAME 

EXAMPLE

This portion of a procedure defines a header frame to hold a date, page number, database name, and user ID.

r-dbname.p
DEFINE VARIABLE pageno AS INTEGER FORMAT "zzz9" INITIAL 1.

FORM HEADER "Date:" TO 10 TODAY
    "Page:" AT 65 pageno SKIP
    "Database:" TO 10 DBNAME FORMAT "x(60)" SKIP
    "Userid:" TO 10 userid WITH NO-BOX NO-LABELS.
VIEW. 

NOTES

SEE ALSO

ALIAS Function, CONNECT Statement, CONNECTED Function, CREATE ALIAS Statement, CREATE DATABASE Statement, DATASERVERS Function, DBVERSION Function, DELETE ALIAS Statement, DISCONNECT Statement, FRAME-DB Function, LDBNAME Function, NUM-DBS Function, PDBNAME Function, SDBNAME Function


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095