A user defined value associated to an item.


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


A field can be set to any value you want.


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.


// 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


  • No labels