respAddField()

This procedure adds field into memory. The field is added into element passed as pointer.

ParameterTypeDescription
element_ptrPOINTERMandatoryPointer to element
fieldName30A VARYING, VARSIZEMandatoryName of field
structure10A VARYING, VARSIZEOptionalStructure of element (“array” or “object”) if no provided then “object” is default

The procedure returns pointer for newly added field. If procedure can’t add field, then returns null.

Examples:

e_ptr = respAddElement('data');
f_ptr = respAddField(e_ptr: 'warehouse');

e_ptr = respAddElement('data');
f_ptr = respAddField(e_ptr: 'listOfWarehouses': 'array');