Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


RecordCount = -1 (???)

Posted on 2000-04-17
Medium Priority
Last Modified: 2010-04-04
Something "strange" in D5 and Oracle7.3.4. The application runs a SELECT statement in a table which contains VARCHAR2(2000) fields. Well... sometimes (only SOMETIMES) I get a RecordCount with value = -1 (negative 1). Any idea?
Question by:binho
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3

Author Comment

ID: 2722420
Motaz: sure it is opened. That's when it returns -1.
LVL 13

Accepted Solution

Epsylon earned 300 total points
ID: 2722494
Here is a link that relates to this:

Another thing you could try is to call 'FetchAll' before you read 'RecordCount'. However this could be slow...



Expert Comment

ID: 2722368
Make sure that the DataSet is opened

Author Comment

ID: 2722532
I just found out that it returns -1 only when the number of rows returned is greater than 10. If the # is eleven, then I get -1.

Author Comment

ID: 2722565
Calling FetchAll before reading RecordCount solve the problem :))

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question