[thelist] rs.PageCount

Salvatore Palmisano spalmisano at usaiss.com
Fri Jan 26 17:41:31 CST 2001


This is from MSDN:
***
PageCount Property
Indicates how many pages of data the Recordset object contains.

Return Value
Returns a Long value that indicates the number of pages in the Recordset.

Remarks
Use the PageCount property to determine how many pages of data are in the
Recordset object. Pages are groups of records whose size equals the PageSize
property setting. Even if the last page is incomplete because there are
fewer records than the PageSize value, it counts as an additional page in
the PageCount value. If the Recordset object does not support this property,
the value will be -1 to indicate that the PageCount is indeterminable.

See the PageSize and AbsolutePage properties for more on page functionality.
***


--Salvatore Palmisano
Chief Information Officer
International Security Solutions, Inc.
spalmisano at usaiss.com

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Cory Preus
Sent: Friday, January 26, 2001 5:09 PM
To: 'thelist at lists.evolt.org'
Subject: [thelist] rs.PageCount


Hello evolt-type-folk

Does anyone know why a rs.PageCount call in ASP would return -1 when the
recordset is filled with lots of goodness?

Cory

<tip>
If you haven't already, define (programming, design, interface) standards
and follow them. The benefits are enormous. P.S. That's why there are
standards all over the place. As we all well know, not following a defined
standard makes life hell (6 years of browser independence).
</tip>

---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list