Progress
Language Reference


FRAME-VALUE Function

Interfaces
OS
SpeedScript
All
All
No

During a data entry statement, returns the (character string) value of the input field that the cursor is in to the current input field. At other times, returns the (character string) value of the input field the cursor was last in.

SYNTAX

FRAME-VALUE 

EXAMPLE

When the user presses END-ERROR while running this procedure, the procedure displays the name and value of the field the user was updating, along with the name of the table that contains that field.

r-frval.p
FOR EACH customer:
  DISPLAY cust-num name address city state postal-code
    WITH 1 COLUMN DOWN COLUMN 20.
  SET address city state postal-code.
END.

DISPLAY
  "You were updating field:" FRAME-FIELD FORMAT "x(20)" SKIP
  "Of file:" FRAME-FILE SKIP
  "And it had the value:" FRAME-VALUE FORMAT "x(20)" SKIP(2)
  "When you pressed the END-ERROR key"
  WITH FRAME helper NO-LABELS COLUMN 20 ROW 14 NO-BOX. 

NOTES

SEE ALSO

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


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