I have an action script that looks at year, month and day entries, some of
which may be chosen from Combo Boxes. The first time the script calls
month.getSelectedIndex() the correct index of a selected entry is returned.
Further calls return nothing (null string), whether the user has changed the
combo box entry since or not. I have been teaching a class of 12th graders, and
all of their programs are doing the same thing, functioning only when first run.
HGilbert/Teacher - 30 Apr 2005 22:27 GMT
Whoops! I used the following code for a ComboBox 'month':
month = month.getSelectedIndex()
thereby changing Combobox month into a fixed variable!
Live and learn.