dkeene Posted September 13, 2020 Share Posted September 13, 2020 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 Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 13, 2020 Administrators Share Posted September 13, 2020 Hi, First of all, where does aComponent come from? Are sure that it is a TUniDBComboBox? Quote Link to comment Share on other sites More sharing options...
dkeene Posted September 13, 2020 Author Share Posted September 13, 2020 Yes I am sure. I can "see" the items as strings in the debugger when I am debugging. I am not sure this is the problem, but I am getting the error. Quote Link to comment Share on other sites More sharing options...
dkeene Posted September 14, 2020 Author Share Posted September 14, 2020 Please disregard help on this thread. Thank you D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.