Label List: Difference between revisions

From Planimate Knowledge Base
Jump to navigation Jump to search
(New page: Labellists contain text/value pairs, like a C enumeration. Table columns and attributes can be formatted to display and accept input using a labellist. The advantages of using a label lis...)
(No difference)

Revision as of 02:06, 15 January 2008

Labellists contain text/value pairs, like a C enumeration. Table columns and attributes can be formatted to display and accept input using a labellist.

The advantages of using a label list include:

  • A given string is stored only once, reducing replication and chances of errors
  • Tables with millions of rows can use labels without wasting memory for for individual cell strings
  • They are convenient for creating selection lists (eg: combo-box selection cells) and menus
  • A label can be renamed and all references to it will be instantly updated

A number of Routine Operations provide methods to create and modify labels and labellists. The DataSet mechanism handles saving, loading and merging of labels along with the table data.

Planimate includes a number of Default Label Lists with useful enumerations that the modeller can extend. A number of System Label Lists enable the model to access its own internal strucutre,. Unlike the default label lists, these cannot be altered as label lists; they are defined by another structure, for example broadcasts.