Jump to content

unidbcombobox remotequery


dkeene

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...