PreviousNextIndex

FRAME-VALUE statement

Stores the value of an expression in a frame field during a data entry statement.

Note: Does not apply to SpeedScript programming.
Syntax

FRAME-VALUE = expression 

expression
Example

This procedure displays the word PROGRESS, the date, and a message instructing you to enter data or press the GET key to enter the Unknown value (?). You can update the information in the frame. If you press GET, the r-frmval.p procedure assigns the Unknown value (?) to a field with the FRAME-VALUE statement.

r-frmval.p
DEFINE VARIABLE txt     AS CHARACTER NO-UNDO INITIAL "PROGRESS". 
DEFINE VARIABLE tmpdate AS DATE      NO-UNDO INITIAL TODAY. 
IF KBLABEL("GET") = "GET" THEN ON F3 GET. 
STATUS INPUT "Enter data or use the " + KBLABEL("GET") 
  + " key to enter the Unknown value (?)". 
UPDATE txt tmpdate EDITING: 
  READKEY. 
  IF KEYFUNCTION(LASTKEY) = "GET" THEN DO: 
    FRAME-VALUE = ?. 
    NEXT. 
  END. 
  APPLY LASTKEY. 
END. 

Note

For more information on frames, see OpenEdge Getting Started: ABL Essentials.

See also

FRAME-FIELD function, FRAME-FILE function, FRAME-VALUE function


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex