Top

Name

udt_get — Retrieves a copy of the requested member from a user defined type instance

Synopsis

any udt_get ( in udt_inst any ,
  in member_name varchar );
 

Description

This function returns a copy of the member named member_name, if any, for type instance udt_inst. It is the functional equivalent of member observer.

Parameters

udt_inst

a user defined type instance.

member_name

the name of the requested member.

Return Types

This function returns a copy of the requested member, if any.

Examples

Example 24.426. Observing members

This example simply fetches a member from a user defined type.

....
declare inst SER_UDT;

inst := new SER_UDT ();
return udt_get (inst, 'A');
....