I didn’t think the count at the bottom of the browser window included deleted rows; does it?!
Tom Bacon
GIS Engineer, Mouchel
T 01444 472380 │ E thomas...@mouchel.com │ W www.mouchel.com
Our values: innovation │ excellence │ integrity │ responsibility
Mouchel Limited (Mouchel) is registered in England and Wales with registered number 01686040 at Export House, Cawsey Way, Woking, Surrey, UK, GU21 6QX. The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. Any views or opinions expressed in this e-mail may be solely those of the author and are not necessarily those of Mouchel. No contracts may be concluded on behalf of Mouchel by means of email communications. Mouchel reserves the right to monitor and intercept emails sent and received on our network. |
Hello Alan,
Lots of opinions and suggestions here, but I think there's only one reliable way. Take the number of rows reported (which includes the deleted rows) and subtract the count(*) from the table (which excludes the deleted rows).
If you simply open a browser window, you see the number of rows. In the MapBasic window, you can also use:
print tableinfo(TableName, 8)
Number 8 equates to TAB_INFO_NROWS, if you were writing a MapBasic program.
To count the actual number of records:
select count(*) from TableName
Then, get your calculator out...
Don't be distracted by whether a row has an object or not. That's not related to whether the row is deleted.
Regards,
Warren Vick
Europa Technologies Ltd.
From: mapi...@googlegroups.com [mailto:mapi...@googlegroups.com] On Behalf Of Alan Carr
Sent: 22 March 2013 3:42 PM
To: mapi...@googlegroups.com
Subject: [MI-L] Count deleted rows?
Hi guys,
--