classname_fieldname_get

This function retrieves a value from a field into a variable.

Prototype

 
    MCO_RET	classname_fieldname_get(	/*IN*/ classname *handle, 
                        /*OUT*/ <type> *value);
 

Arguments

handle A pointer to a classname handle

value

A pointer to a variable of type type, into which will be read the value of fieldname from the object referenced by handle

Description

This form of the function applies to elements with a fixed size (not char, string or BLOB). The C data type of the value parameter is the data type of fieldname as defined in the database schema, and the prototype output by the schema processor to the generated API header.

Return Codes

MCO_S_OK The values were read successfully
MCO_E_TRANSACT  

MCO_ERR_OBJECT_HANDLE

 

Related Topics Link IconRelated Topics