Ooooh. Yeah. This means that what I've been developing isn't going to work. That seems to be a very frequent feeling.ESRI, you may want to take note:Rolf is right. ComboBoxes do support .clear. The reason that I thought that they didn't is because I was trying to .clear a ComboBox inside a <TableForm> element. Later I switched to just a normal form to build my other forms with the intention of moving them into a <TableForm> element. Of course, I did not use the .clear. Instead, I used the .ListIndex = -1. This seemed to work.... until I read Rolf's post. I tried the .ListIndex = -1 inside a <TableForm> element. . .To my unsurprise, it does not work.Here's my code: console.print(ThisEvent.Object.Parent.Controls("Field1").ListIndex)
This works. It prints the .ListIndexThisEvent.Object.Parent.Controls("Field1").Clear
orThisEvent.Object.Parent.Controls("Field1").ListIndex = -1
These do not work. Error message: Class doesn't support AutomationSource Text UnavailableIf you misspell your control, ex:ThisEvent.Object.Parent.Controls("Fiel1").ListIndex = -1
Object RequiredSource Text Unavailableso it is a different message.Again, this DOES WORK inside a <FORM> but the SAME CODE does not work inside a <TABLEFORM>.