WRDSchema2017::CreateType (open)

Create a new type

Syntax

LOADLIB "mod::wrd/lib/internal/wrdschema.whlib";

OBJECT FUNCTION CreateType(STRING tag, RECORD options)

Parameters

STRING tag

Tag for the new type

RECORD options

Options

description

Description for the new type

linkfrom

Type this type links from

linkto

Type the new type links to (if set, 'linkfrom' is required)

title

Title for the new type

Return value

OBJECT

New type