![Oracle forms get current item](https://kumkoniak.com/20.jpg)
![oracle forms get current item oracle forms get current item](https://docs.oracle.com/cd/E26401_01/doc.122/e48939/img/eng_Revised_Items.gif)
Checked state is: ", checkedListBox1->GetItemCheckState( checkedListBox1->Items->IndexOf( itemChecked ) ), "." ) ) MessageBox::Show( String::Concat( "Item with title: \"", itemChecked, "\", is checked. Use the IndexOf method to get the index of an item. Object^ itemChecked = safe_cast(myEnum2->Current) IEnumerator^ myEnum2 = checkedListBox1->CheckedItems->GetEnumerator()
![oracle forms get current item oracle forms get current item](https://docs.oracle.com/cd/E18727_01/doc.121/e13410/img/po_PO_Find.gif)
Next show the Object* title and check state for each item selected. Checked state is: ", checkedListBox1->GetItemCheckState( indexChecked ), "." ) ) MessageBox::Show( String::Concat( "Index#: ", indexChecked, ", is checked. The indexChecked variable contains the index of the item. Int32 indexChecked = *safe_cast(myEnum1->Current) IEnumerator^ myEnum1 = checkedListBox1->CheckedIndices->GetEnumerator() First show the index and check state of all selected items. Display in a message box all the items that are checked. void WhatIsChecked_Click( Object^ /*sender*/, System::EventArgs^ /*e*/ )
![oracle forms get current item oracle forms get current item](https://1.bp.blogspot.com/-iOxf_gMJkpI/UmYv41UXSOI/AAAAAAAAAsU/a3jWU98VwU0/s1600/18.jpg)
The second loop also uses GetItemCheckState, but uses the method to retrieve the index for the item. The first loop uses the GetItemCheckState method to get the CheckState of each checked item, given the index of the item. The example also demonstrates using the CheckedIndices property to get the CheckedListBox.CheckedIndexCollection and the CheckedItems property to get the CheckedListBox.CheckedItemCollection. The example demonstrates using the GetItemCheckState method to set the check state of an item. The following example enumerates the checked items in the CheckedListBox.CheckedIndexCollection to see what check state an item is in. The index specified is greater than or equal to the count of items in the list.
![Oracle forms get current item](https://kumkoniak.com/20.jpg)