Progress
Language Reference


FRAME-FIELD Function

Interfaces
OS
SpeedScript
All
All
No

During a data entry statement, returns the name of the input field the cursor is in. At other times, returns the name of the input field the cursor was last in.

The FRAME-FIELD function is particularly useful if you want to provide the user with help for the input field being used.

SYNTAX

FRAME-FIELD 

EXAMPLE

For each field the user is updating, this procedure displays the name of the field, the table the field belongs to, and the value currently in the field. The EDITING phrase is part of the UPDATE statement; it displays information on the field as the user updates the record, and then reads each of the keystrokes entered (READKEY) and applies those keystrokes (APPLY LASTKEY).

r-frfld.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
              "Its value is:" FRAME-VALUE FORMAT "x(20)"
              WITH FRAME a ROW 15 NO-LABELS CENTERED.
      READKEY.
      APPLY LASTKEY.
   END. /* Editing */
END. 

NOTES

SEE ALSO

FRAME-FILE Function, FRAME-INDEX Function, FRAME-VALUE Function, PROGRAM-NAME Function


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