Page 1 of 1
File statistics for plugins
Posted: 30 Apr 2020 16:05
by Ron Melby
File Statistics record with the detail of File>File Statistics to be available to plugins. perhaps fhGetFileStatistics() function
Re: File statistics for plugins
Posted: 30 Apr 2020 18:34
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
Re: File statistics for plugins
Posted: 25 Jul 2022 20:48
by ColeValleyGirl
Does this still need to be a wish list request?
Re: File statistics for plugins
Posted: 02 Sep 2022 22:54
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?
Re: File statistics for plugins
Posted: 15 Dec 2022 11:54
by ColeValleyGirl