BiggiePhat
New Member
- Joined
- Nov 1, 2009
- Messages
- 5
- Reaction score
- 0
I have an autocomplete text box that runs off of a string array i have coded in XML. the string array is pretty much just used for autocomplete as a nice added feature.
i want to compare the string in the textbox to a hard coded string (or some way to utilize the string array) to see what action to take when the go button is pressed.
For example pseudocode would be
when button is pressed{
if(text = "a")
gotoThisWebpage("www.webpage.com");
else if (text = "b")
gotoThisWebpage("www.webpage2.com");
and etc.
how can this be done?
i want to compare the string in the textbox to a hard coded string (or some way to utilize the string array) to see what action to take when the go button is pressed.
For example pseudocode would be
when button is pressed{
if(text = "a")
gotoThisWebpage("www.webpage.com");
else if (text = "b")
gotoThisWebpage("www.webpage2.com");
and etc.
how can this be done?