When I use the name of my combo box to get its default property, Value, a string is returned. I assume it would be the same for combobox.Value, but I admit I haven't tried it.
For example, cboYear evaluates to "2004."
But when I use cboYear.ItemData(cboYear.ListIndex) I get a value, 2004.
I ran into a sneaky bug for a while until I discovered this.
Can anyone explain this and/or give me some hints as to why this is happening? It's most unpleasant!
For example, cboYear evaluates to "2004."
But when I use cboYear.ItemData(cboYear.ListIndex) I get a value, 2004.
I ran into a sneaky bug for a while until I discovered this.
Can anyone explain this and/or give me some hints as to why this is happening? It's most unpleasant!