* File statistics for plugins
File statistics for plugins
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
- tatewise
- Megastar
- Posts: 28333
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: File statistics for plugins
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:
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
- ColeValleyGirl
- Megastar
- Posts: 5464
- Joined: 28 Dec 2005 22:02
- Family Historian: V7
- Location: Cirencester, Gloucestershire
- Contact:
Re: File statistics for plugins
Does this still need to be a wish list request?
Helen Wright
ColeValleyGirl's family history
ColeValleyGirl's family history
Re: File statistics for plugins
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 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
- ColeValleyGirl
- Megastar
- Posts: 5464
- Joined: 28 Dec 2005 22:02
- Family Historian: V7
- Location: Cirencester, Gloucestershire
- Contact:
Re: File statistics for plugins
Wish List request 588 has been created.
Helen Wright
ColeValleyGirl's family history
ColeValleyGirl's family history