0

Hi everyone,
I'm trying to make the autocomplete work on a list of items entered into a textbox separated by semicolons. I have a list of authors the user can choose from and it autocompletes as they type the name no problem, but what I'd like to do is after the user types a name followed by a semicolon, the autocomplete works on the next name and so on.

e.g., Smith, John; Eastwood, Clint

Any suggestions?
cheers
Harry

2
Contributors
1
Reply
4
Views
6 Years
Discussion Span
Last Post by HookDevil
0

Every time the user hits ; you could add the specified name of the author to a list and clear the textBox.

i.e.
If keyPressed = ";" then
AuthorList.Add(txtBox.Text)
txtBox.Text = ""
End If

You could also tell autocomplete to start over at specified substring where the starting index of the substring is the index of ";" + 1 in the textbox...

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.