PyCComboBox.SelectString

SelectString(after, string)

Searches for a combobox item that matches the specified string, and selects it.

Parameters

after : int

Contains the zero-based index of the item before the first item to be searched, or -1 for the entire combobox.

string : string

The string to search for.

MFC References

CComboBoxBox::SelectString

Return Value

The return value is always None - an exception is raised if the string can not be located.