Progress
Language Reference


FRAME-FILE Function

Interfaces
OS
SpeedScript
All
All
No

Returns the name of the database table that contains the field the cursor is in. The FRAME-FILE function is useful if you want to provide users with context-sensitive help.

SYNTAX

FRAME-FILE 

EXAMPLE

This procedure updates fields from the order table and the customer table. It uses the FRAME-FILE function to tell you which table contains the field being updated.

r-frfile.p
FOR EACH customer, EACH order OF customer:
      DISPLAY order-num WITH CENTERED ROW 2 FRAME onum.
      UPDATE
        customer.cust-num AT 5 order.cust-num AT 30 SKIP
        customer.name  AT 5
        customer.city AT 5
        customer.state AT 5
        customer.postal-code AT 5
        WITH ROW 8 CENTERED 1 DOWN NO-LABELS
        EDITING:
         MESSAGE "     The field" FRAME-FIELD "is from the" FRAME-FILE
                 "file     ".
         READKEY.
         APPLY LASTKEY.
      END.  /* Editing */
END. 

NOTES

SEE ALSO

FRAME-FIELD Function, FRAME-VALUE Function, PROGRAM-NAME Function


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