Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Industrial Graphic Editor

Find an item in a list

  • Last UpdatedJul 08, 2024
  • 1 minute read

You can find an item in a Combo Box or List Box list. You specify the item caption, and the method returns the index number of the first item found. Otherwise, the method returns -1.

Find an item in a Combo Box or List Box list

  • In an action script, use the following method:

    Index = ControlName.FindItem("ItemCaption");

    where ControlName is the name of the Combo Box or List Box control and ItemCaption is the caption of the item you are looking for.

    The index is set to -1 if the item is not found, otherwise it contains the index of the first found item. The first item of the list has an index of 0.

TitleResults for “How to create a CRG?”Also Available in