* File statistics for plugins

Requests that have been moved to the Wish List, or deemed to need no further action
Post Reply
User avatar
Ron Melby
Megastar
Posts: 878
Joined: 15 Nov 2016 15:40
Family Historian: V6.2

File statistics for plugins

Post by Ron Melby » 30 Apr 2020 16:05

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: 27079
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: File statistics for plugins

Post by tatewise » 30 Apr 2020 18:34

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: 4853
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: File statistics for plugins

Post by ColeValleyGirl » 25 Jul 2022 20:48

Does this still need to be a wish list request?

User avatar
Ron Melby
Megastar
Posts: 878
Joined: 15 Nov 2016 15:40
Family Historian: V6.2

Re: File statistics for plugins

Post by Ron Melby » 02 Sep 2022 22:54

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: 4853
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: File statistics for plugins

Post by ColeValleyGirl » 15 Dec 2022 11:54

Wish List request 588 has been created.

Post Reply