Skip to content

Item_group Command

Obsolete

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

See Also

Purpose

To begin the declaration of a group of items to have the same value as each other at all times.

Syntax

item_group
    dependent_item ...
    :
    dependent_item ...
end_item_group

What It Does

This command is used to begin the list of a group of dependent items. Dependent-item groups should be declared just prior to the first start_ui statement.

A dependent-item group is created whenever a group of items must always have the same value as each other. For example, when a database field is bound to more than one item (in one or more objects), each item bound to the field must display the same value as the other items. To ensure this, you may create a dependent-item group that specifies all equivalent items.

item_group
    dependent_item customerform.obj 1
    dependent_item paymentform.obj 2
end_item_group

In this example, if the second item in Objectcustomerform and the third item in Objectpaymentform were both bound to Fieldcustomer.customer_name, we would create a dependent item group to ensure that both items always have the same value.

Any time data entry is performed on one of the items in the group, all of the other items in the group are set to the value of the edited item once the cursor leaves the item.