PreviousNextIndex

AVAILABLE attribute

Indicates whether a buffer contains a record.

Data type: LOGICAL

Access: Readable

Applies to: Buffer object handle, Buffer-field object handle

For the buffer object handle, the AVAILABLE attribute corresponds to the AVAILABLE function. If the buffer contains a record, AVAILABLE is TRUE. Otherwise, AVAILABLE is FALSE.

Generally, a buffer-field object handle corresponds to a field returned in a query buffer. However, this field can be excluded from the query using a field list. In this case, if you try to read the BUFFER-VALUE attribute on the associated buffer-field object handle, the AVM returns an error indicating that the corresponding field is missing from the query buffer. You can use the AVAILABLE attribute to test whether the corresponding field was included or excluded from the query.

Depending on its return value, the AVAILABLE attribute indicates one of the following conditions when applied to the buffer-field object:


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex