A user defined value associated to an item.

Usage

Set_Property(OLECtrlEntID, "OLE.ItemField[ItemKey;FieldName]", Value)

Values

A field can be set to any value you want.

Remarks

The ItemField property allows you to add custom key/value pairs to any single item. This is a great way of adding metadata to an item for later use. For example, let's say your tree control contains human readable names of available application windows. You could then associate the internal form names using this property. The options are endless.

Note also that user defined fields can be used in any property that supports Conditions.

Example

// Associate the Reports window to an item called reports by adding a field
// called WINDOW and passing the window name as the value.
Set_Property(@Window:".OLE_TREE", "OLE.ItemField[REPORTS;WINDOW]", "MY_REPORTS_WINDOW")

See Also

ConditionsFilterItemFields

  • No labels