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

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: