Page 1 of 1

Automatic ';Count of children'; per marria

Posted: 13 Jul 2005 19:40
by SabineS
I noticed the 'count of children' field which is associated with an individual. I would rather have something automatic that gives me the count of children per marriage. That number then could, for example, be included into a query.

Cumberland Family Tree - which is where I came from in terms of software use - had something like that in its 'Family Record List', which contained, apart from husband, wife and marriage date/place, a column with the number of children from that particular marriage.

Or is there a way to do this through a query in FH?

Sabine

ID:976

Automatic ';Count of children'; per marria

Posted: 13 Jul 2005 20:55
by Jane
You can do both. The count of children is for you to use where you 'know' there are more children than you have details for. IE the man had 2 chidren by a previous marriage, but thats all you know, so the field is available.

For get the automatic just use the
ChildCount function, if you want the number of children in the file.

Here is the documentation from the Help file.

Function Name: ChildCount

Description:
Returns the number of children of a given Individual or Family. Can be used with any record type, but will return 0 for record types other than Individual or Family
No. of parameters: 1
Return Type: Numeric
Parameter 1: A reference to a record
Examples: =ChildCount(%INDI%) or=ChildCount(%FAM%)or=ChildCount()

Automatic ';Count of children'; per marria

Posted: 14 Jul 2005 07:01
by SabineS
Jane,

great - that's it, tried it just now. I should have checked the Help File first ...

Thanks a lot

Sabine