INPUT function
References the value of a field in a frame. For example, if you use the PROMPT-FOR statement to get input from the user, PROMPT-FOR stores that information in the screen buffer. You can use the INPUT function to refer to that information.
Note: Does not apply to SpeedScript programming.Syntax
FRAMEframe
field
ExampleThis procedure displays the current
CreditLimit
for a Customer. The PROMPT-FOR statement prompts the user for a newCreditLimit
value and stores the supplied data in the screen buffer. The procedure uses the INPUT function to point to the data in that buffer.
If the user enters a new value, the procedure displays a message that the value has been changed. If the user enters the same value, the procedure displays a message that the credit-limit has not been changed.
Notes
- If you use a field or variable that is referenced with INPUT in more than one frame, then ABL uses the value in the frame most recently introduced in the procedure. To ensure that you are using the appropriate frame, use the FRAME option with the INPUT function to reference a particular frame.
- If you use the INPUT function for a character field whose format contains fill characters, then the value of the function does not contain the fill characters. The fill characters are not stored in the database field or variable, but are instead supplied during display formatting of the data.
OpenEdge Release 10.2B
|