BUFFER-VALUE( ) method
- Last Updated: January 18, 2024
- 2 minute read
- OpenEdge
- Version 12.8
- Documentation
The current value of a buffer-field object. If you modify
the BUFFER-VALUE(), the AVM sets the buffer-field object
to the new value.
Data type: The data type of the corresponding
buffer-field
Access: Readable/Writeable
Applies to: Buffer-field object handle
Syntax
|
- i
- An integer expression representing a subscript, for fields that are arrays.
The syntax for reading and writing the value of a
buffer-field object using a dynamic reference to a table field in a
dynamic ProDataSet, temp-table, query, or buffer object can be awkward, especially when you
know the table and field names at compile time. ABL provides a simpler way to express the
same syntax, only in a short-hand form using a double colon (::). Both the
long- and short-hand forms are shown in the following examples.
Examples
CustNum buffer field in the Customer table
through a ProDataSet handle:
|
State
buffer field in the ttcust temp-table through a ProDataSet handle:
|
Month-Quota array buffer field in the ttsalesrep temp-table through a ProDataSet handle:
|
Month-Quota array buffer field in the ttsalesrep temp-table through a ProDataSet handle:
|
CALL-TYPE attribute to
SET-ATTR-CALL-TYPE to set a Buffer-field object's
BUFFER-VALUE() method return value, since there in no way to run triggers
for the target field.