Hi
I am using unidbcombobox and am trying to populate the dropdown list via RemoteQuery.
for some reason that I have not been able to explain or fix, I get an error when closing the form:
project raised exception class EStringListError with message 'List index out of bounds (0)'
This seems to happen ONLY when the result (TStrings) has been populated during the remotequery event, i.e., the result dropdown has string items in it.
I have tried using unidbcombobox.mode= umNameOnly and umNameValue
I tried deleting the strings
while TUniDBComboBox(aComponent).Items.Count>0 do
begin
TUniDBComboBox(aComponent).Items.Delete(0);
end;
but this gives the same error: list index out of bounds (0).
Any thoughts?
Thank you
Doug