KI_HANDLE_GET_ATTR_STR

Get handle attribute

Synopsis:
CALL KI_HANDLE_GET_ATTR_STR handle, eAttr TO sAttr$, [nLen], [status]
status = 'ki_handle_get_attr_str( handle, eAttr, sAttr$ )
ArgumentEnumerationPurpose
handleTable handle
eAttrKDB_HANDLE_ATTR_ENUMattribute
sAttr$Buffer to receive attribute
nLenLength of string
statusKDB_ERROR_ENUMReturn status
>KI_HANDLE_GET_ATTR_STR

KI_HANDLE_GET_ATTR_STR

This function is used to inspect string attributes of a database handle. Generally these attributes were set using the complementary KI_HANDLE_SET_ATTR_STR function after the handle has been allocated with KI_ALLOC_HANDLE. Handles also have numeric and boolean attributes that are set with KI_HANDLE_SET_ATTR and inspected with KI_HANDLE_GET_ATTR.

Valid attributes and the enumeration that define them may be found in this page and in the constants list here.

The length receiver nLen returns the actual length of the attribute even if the string was clipped to fit the available space in the given buffer. If the buffer is bigger than the attribute it will be space filled. If there is no attribute then the entire buffer will be blank and the length will be zero.

History
Introduced in KCML 6.60
See Also:
KI_ADD_TRACKED_LOCK, KI_ALLOC_HANDLE, KI_CLEAR, KI_CLEAR_HANDLES, KI_CLOSE_TABLE, KI_DROP_TRACKED_LOCK, KI_FREE_HANDLE, KI_GET_HANDLE, KI_GET_TRACKED_LOCKS, KI_HANDLE_GET_ATTR, KI_HANDLE_SET_ATTR, KI_HANDLE_SET_ATTR_POOL, KI_HANDLE_SET_ATTR_STR
KCML database status codes