Skip to content

Item_list Command

Obsolete

This command is obsolete. It was only used in now obsolete DataFlex classes.

See Also

Purpose

To begin the list defining the items of a menu-, entry-, or list-class object.

Syntax

item_list
    entry_item . . .
    :
    on_item . . .
    :
end_item_list

What It Does

Item lists are used each time a menu-, entry-, or list-class object is defined. The items that are defined in the item_list will be added to the object and become part of its data structure.

  • Menu- and Entry-Class Objects:
  • Use a static item structure.
  • The items in the structure may be defined only within the item_list and may not be added to later.

  • List-Class Objects:

  • Use a dynamic item structure and utilize the item_list as a convenience.
  • List objects may add items at any time, and any on_item commands used in list objects' item lists are converted to add_item messages by the system.

For every item_list, there must be a matching end_item_list command to terminate the list.