Progress
Language Reference


FRAME-NAME Function

Interfaces
OS
SpeedScript
All
All
No

Returns the name of the frame that the cursor is in to a field that is enabled for input.

SYNTAX

FRAME-NAME 

EXAMPLE

This procedure displays customer information in one frame, then displays order information for the customer in a second frame. Use the FRAME-NAME function to display the name of the frame the cursor is in.

r-frname.p
FOR EACH customer, EACH order OF customer:
    DISPLAY order-num WITH CENTERED ROW 2 FRAME onum.
    UPDATE customer.cust-num AT 5 customer.name AT 30 SKIP
        WITH FRAME custfrm WITH CENTERED 1 DOWN
        EDITING:
            DISPLAY " You are currently editing a frame called "
                    FRAME-NAME WITH FRAME d1 WITH 1 DOWN CENTERED.
            READKEY.
            APPLY LASTKEY.
            IF LASTKEY = KEYCODE("RETURN") THEN
                 MESSAGE " Press the space bar to edit order shipdate".
         END. /* Editing */
    HIDE FRAME custfrm.
    HIDE FRAME d1.
    UPDATE ship-date AT 5 WITH FRAME orderfrm WITH CENTERED 1 DOWN
       EDITING:
         DISPLAY " Now you are editing a frame called"
                 FRAME-NAME WITH FRAME d2 WITH 1 DOWN CENTERED.
         READKEY.
         APPLY LASTKEY.
       END.
    HIDE FRAME orderfrm.
    HIDE FRAME d2.
END. 

NOTES

SEE ALSO

Frame Phrase, PROGRAM-NAME Function


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