22. Using 3GL Procedures : Get Attribute
 
Share this page                  
Get Attribute
Get an attribute from an array or record.
Syntax
exec 4gl get attribute record | array index
  (:var[:ind] = attribute [,:var[:ind] = attribute]);
exec 4gl get attribute record | array index
  using descriptor;
record
Specifies the handle of the record. Integer.
array
Specifies the handle of the array. Integer.
var
Specifies the 3GL variable to receive results
ind
Specifies a null indicator variable
attribute
Specifies the name of the attribute
index
Specifies the array index
descriptor
Specifies the name of the SQLDA descriptor
Description
The get attribute statement copies the attributes of a record or array row into 3GL variables. The named attributes must appear in the record or array, and the types of the attributes must be compatible with the types of the target variables.
The using descriptor form gets the attributes indicated in the SQLDA set up by the describe statement. See Describe.