Sfairadora

  • Reference Guide

sub_type

sub_type(type, ref)
Returns the type of a component of the type specified by the parameter type. The component is determined by a reference – the ref parameter of the type Dref. A value of the type Dref can be created, for instance, by the typecast operator from a String value. At the place of an index, an arbitrary number of an asterisk (*) can be used. If the component specified by the reference is not present is the type, an error is returned.
Example:
sub_type(Rich_cformat_def, [Dref]"*.char_attr.font_name")
This expressing returns the type String. (See Rich_cformat_def).