* File statistics for plugins

For Wish List Requests that have either (a) been progressed to the Wish List; or (b) been classified as duplicates, or as redundant because the requirement is already satisfied within FH and/or plugins; or (c) closed because it wasn't possible to arrive at a clear specification of the request within 15 months of it being raised.
Post Reply
User avatar
Ron Melby
Megastar
Posts: 917
Joined: 15 Nov 2016 15:40
Family Historian: V6.2

File statistics for plugins

Post by Ron Melby »

File Statistics record with the detail of File>File Statistics to be available to plugins. perhaps fhGetFileStatistics() function
FH V.6.2.7 Win 10 64 bit
User avatar
tatewise
Megastar
Posts: 28333
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: File statistics for plugins

Post by tatewise »

That sounds more useful than it I suspect it would be in practice.
Usually, such counts are only needed for a Progress Bar and usually only applied to one or two types of record.
The script needed to run fhGetFileStatistics() and extract the counts required would probably take much the same time as the loop:

Code: Select all

pi = fhNewItemPtr()  -- declare pointer 
pi:MoveToFirstRecord("INDI") -- and set to the first record.
iCount = 0
while pi:IsNotNull() do
   iCount = iCount + 1
   pi:MoveNext()
end
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
ColeValleyGirl
Megastar
Posts: 5464
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: File statistics for plugins

Post by ColeValleyGirl »

Does this still need to be a wish list request?
User avatar
Ron Melby
Megastar
Posts: 917
Joined: 15 Nov 2016 15:40
Family Historian: V6.2

Re: File statistics for plugins

Post by Ron Melby »

I would like it to remain so, it will help considerably to know the number of indis, the number of fams, sources, places etc with a function, rather than counting them at plugins, for various reasons.

fh knows it, and its calc-ed already, so should be as trivial as fhGetTag is to return any of those values. Why re-invent the wheel on this?
FH V.6.2.7 Win 10 64 bit
User avatar
ColeValleyGirl
Megastar
Posts: 5464
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: File statistics for plugins

Post by ColeValleyGirl »

Wish List request 588 has been created.
Post Reply