devxlogo

SelectItemFromText – Select the ListControl element with a given text

SelectItemFromText – Select the ListControl element with a given text

' Select the ListControl element with a given text' Example: SelectItemFromText(ListBox1, "hello")Sub SelectItemFromText(ByVal lst As ListControl, ByVal value As String)    lst.SelectedIndex = lst.Items.IndexOf(lst.Items.FindByText(value))End Sub

devx-admin

Share the Post: