|
-
Oct 10th, 2000, 08:22 AM
#1
Thread Starter
New Member
How would create multithreaded applications in VB?
Why VB is called an Object Based Programming language and not Object Oriented?
When I Create a Recordset in ADO with any back end my RecordCount Property of the Recordset Object is always -1 even if i have Records in the base table. How should I overcome this.
-
Oct 10th, 2000, 09:42 AM
#2
Fanatic Member
I can't help you with question 1.
VB is not called object oriented as it does not have the full range of object oriented features, such as inheritance. It is called object based instead as it has most of the features.
The RecordCount property will not be correct until you have moved to the end of the recordset. Once the end has been reached (use MoveLast) the RecordCount is known.
Hope this helps.
VB6 sp5, SQL Server 2000, C#
There are no stupid questions. Only stupid people. 
-
Oct 10th, 2000, 11:01 AM
#3
Frenzied Member
The recordcount property is only guaranteed to be accurate when opening a recordset based on a table.
Make sure your cursor location is adUseClient or it will return -1
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|