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
expression
A constant, field name, variable name or expression whose value you want to store in a frame field. If no frame is active when the AVM runs this statement, the AVM returns an error message. Otherwise, if the frame is in view, the AVM redisplays the field.The data type of theexpression
must be the same as the data type of the frame field in which you are storing that expression. However, if the data type ofexpression
is character, the AVM stores characters in the frame field regardless of the data type of that frame field, truncating characters if necessary.The FRAME-VALUE statement can pass information from anapplhelp.p
procedure to the calling procedure. For example, if the user enters a value into a field called help-field, you can pass that value back to the calling procedure with this statement:
ExampleThis 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, ther-frmval.p
procedure assigns the Unknown value (?
) to a field with the FRAME-VALUE statement.
NoteFor more information on frames, see OpenEdge Getting Started: ABL Essentials.
See alsoFRAME-FIELD function, FRAME-FILE function, FRAME-VALUE function
OpenEdge Release 10.2B
|