Gets a boolean attribute of a handle or a descriptor. The type of the target handle whose attribute gets modified must be specified in the nType parameter. The attribute type must be specified in the nAttrType parameter.
Ora8.bdh
Ora8AttrGetBoolean( in hTargetHandle : number, in nType : number, out bAttrValue : boolean, in nAttrType : number ) : boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
hTargetHandle | Initialized handle whose attribute is retrieved. |
nType |
Specifies the type of the handle whose attribute is retrieved. The specific types are:
|
bAttrValue | Variable receiving the boolean attribute value. |
nAttrType |
The type of attribute being retrieved. The valid types are listed in the table "ORA 8 attributes". |
var ghEnv0 : number; ghError0 : number; ghSvcCtx0 : number; dcltrans transaction TMain var bObject : boolean; begin Ora8Init(ghEnv0, OCI_DEFAULT); Ora8HandleAlloc(ghEnv0, ghError0, OCI_HTYPE_ERROR); Ora8Logon(ghEnv0, ghSvcCtx0, "user", "password", "orclnet2"); Ora8AttrGetBoolean(ghEnv0, OCI_HTYPE_ENV, bObject, OCI_ATTR_OBJECT); Ora8Logoff(ghSvcCtx0); Ora8HandleFree(ghError0, OCI_HTYPE_ERROR); Ora8HandleFree(ghEnv0, OCI_HTYPE_ENV); end TMain;