Progress
Language Reference


FRAME-DB Function

Interfaces
OS
SpeedScript
All
All
No

Returns the logical database name for the field where the cursor is

SYNTAX

FRAME-DB 

The function requires no arguments. If the cursor is in a field that is not a database field, this function displays no value for the field.

EXAMPLE

For each field being updated, this procedure displays the field name, the table the field belongs to, and the database in which the table exists. The EDITING phrase is part of the UPDATE statement; it displays information on the field as you update the record, and then reads each of the keystrokes entered (READKEY) and applies those keystrokes (APPLY LASTKEY).

r-frdb.p
FOR EACH customer:
UPDATE cust-num name address address2 city
    state postal-code WITH 1 DOWN 1 COLUMN CENTERED
     EDITING:
        DISPLAY
          "You are editing field: " FRAME-FIELD SKIP
         " of file: " FRAME-FILE SKIP
         " In database: " FRAME-DB
         WITH FRAME a ROW 15 NO-LABELS CENTERED.
        READKEY.
        APPLY LASTKEY.
      END.  /*Editing*/
END. 

NOTES

SEE ALSO

DBCODEPAGE Function, DBCOLLATION Function, FRAME-FIELD Function, FRAME-FILE Function, FRAME-INDEX Function, LDBNAME Function, PROGRAM-NAME Function


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