Configure Types

In the main view of the Type Editor, the various properties of a type can be edited. This includes the attributes of the type, a comment attached to the type (optional), and a storage name (optional).

A type must have a valid name. This name is simply the file name of the corresponding type file. This name must contain only letters, digits, and underscores, and must begin with a letter or an underscore. Additionally, the name must be unique within the project, including the name case. For example, a single project cannot contain two types named "MyType" and "mytype". The name of a type is used as storage name unless a storage name has been specifically configured (see below).

A type contains the following properties which can be configured in the Type Editor:

Attributes

The attributes that are added to the type are shown in the table. To add a new attribute, click the Add and Configure New Attribute button below the table. To remove an attribute, select the row with the attribute, and click the Remove Attribute button. To configure an attribute, click the Configure Attribute button. When you add or configure an attribute, the Attribute Configuration dialog will automatically pop up. Note that to conserve space, not all columns in the table are shown by default. To change which columns are shown, right-click on any of the column names.

Comment

Here you can add an optional comment to the type. The comment is only displayed in the Type Editor.

Storage Name

Here you can set a name to use when storing values from variables of this type, e.g. the table name in a database, or the tag name in XML. If you leave this field blank, the name of the type will be used instead for storage. The intended use of the type may put some constraints on the storage name; for example, if values of the type are going to be stored in a database, you must avoid using a storage name which is the same as some keyword in the database you intend to use.