Description: Sets the selected item index of matching components on the active DBForm.
Calling convention: CIP_SetComponentItemIndexByName("ComponentName": String, AItemIndex: Integer, [ARefreshData: Boolean = True])
Parameters:
ComponentName: component name, matched case-insensitively.
AItemIndex: selected item index.
ARefreshData: optional refresh request; the current lower-level implementation does not use this value.
Returns: No defined return value. Missing DBForm or Variant NULL ComponentName exits silently. A matching component without LocalEntryData raises an exception.
Availability: Default; requires an active DBForm. Every matching component is processed.
Example:
CIP_SetComponentItemIndexByName("ProductSelector", 2, True);