PDA

View Full Version : Clear a form


parke
01-06-2003, 05:53 PM
I have a form with comboboxes and textboxes. I want to be able to clear the form.

I'm using the is for the textboxes, but I don't know what to use for the comboboxes.
Name = "";
Contact = "";
Comments = ""

The first combobox is called 'question1' (Labels = ----------,Excellent, Good, Fair, Poor). When I clear the form I want it to go to the Label ----------.

What can

khamstra
01-06-2003, 05:57 PM
look into something like the following

question1.setSelectedIndex(0);

khamstra

parke
01-06-2003, 06:03 PM
Thanks. That's what I wanted it to do.

Kelly