PreviousNextIndex

BUFFER-VALUE( ) method

The current value of a buffer-field object. If you modify the BUFFER-VALUE( ) method, 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
BUFFER-VALUE ( [ i ] )  

i

The syntax for retrieving 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. For example, following is the typical syntax for referring to the CustNum buffer field in the Customer table through a ProDataSet handle:

hDSet:GET-BUFFER-HANDLE(“ttcust”):BUFFER-FIELD(“CustNum”):BUFFER-VALUE( ) 

Following is the short-hand form of the same syntax:

hDSet::ttcust::CustNum 

Note: Progress Software Corporation recommends that you do not set the call object's 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.

See also: LITERAL-QUESTION attribute


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex