udt_set
udt_set
(in udt_inst any,
in member_name varchar,
in new_value any);
Description
This copies the instance udt_inst, sets new_value to the member with
a name equal to the value of member_name (if any) and returns the modified
instance copy. This is a functional equivalent of a member mutator.
Parameters
udt_inst –
A user defined type instance
member_name –
The name of the requested member
new_value –
The new value to be set
Return Types
A modified copy of udt_inst with the_value set for member_name.
Examples
Setting user defined type member values
This sample code block shows a user defined type member's value
being set.
....
declare inst SER_UDT;
inst := new SER_UDT ();
inst := udt_set (inst, 'A', 30);
return inst.A;
....