Jump to content

Error filtering dataset


d.bernaert

Recommended Posts

  • Administrators

It seems to happen when DataSet returns a RecordCount = -1.

It should not happen normally. Workaround is to ignore this and return an empty grid.

Workaround:

        if rCount < 0 then
          raise Exception.Create('Dataset returned invalid "RecordCount": ' + IntToStr(rCount));

 

You can replace above line  with:

if rCount < 0 then rCount := 0;
             

 

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...