Minor bug in Default Format

13 views
Skip to first unread message

Jim Eggert

unread,
May 7, 2011, 1:53:47 AM5/7/11
to GEDitCOM II Discussions
In the Default format, in an Individual window, in the Individual pane or the All pane, in the Spouses section, the + sign before a child's name is supposed to indicate whether that child has descendants. But it only looks at the child's first marriage; if there are multiple marriages, the second and following marriages are ignored.

This is easily fixed by editing the Default format. In FAMS Editing (under Tag Editing), change

! set an expression to display this name and add "+" if there
! are ancestors
sub NameWithDescendants,#chil
cell LinkButton
RecordLink #chil
TextExpression @#chil.NAME
AppendedExpression altview
if @#chil.FAMS.CHIL!=""
Format "+%@"
endif
set font "Hyperlink Text"
set border no alignment left
sizetofit -1
help local("Click to view child's record")
endsub

to

! set an expression to display this name and prepend "+" if there
! are descendants
sub NameWithDescendants,#chil
cell LinkButton
RecordLink #chil
TextExpression @#chil.NAME
AppendedExpression altview
RepeatWith "#famly" from @#chil.FAMS
if @#famly.CHIL!=""
Format "+%@"
endif
EndRepeat
set font "Hyperlink Text"
set border no alignment left
sizetofit -1
help local("Click to view child's record")
endsub


Note there are two changes:
1. Comment changed to refer to descendants, not ancestors, and to use the cool word "prepend".
2. Put test for children inside a loop over families.

=Jim

Ronald Hellenbrand

unread,
May 8, 2011, 6:57:43 PM5/8/11
to geditcom-ii...@googlegroups.com
Hello all,

After a computer crash GedITcomII asks for it's registration key again.
Can this somehow be recovered from a backup, or should I use my innocent
blue eyes to ask John for a new registration key?

Regards,

Ronald Hellenbrand.

John Nairn

unread,
Dec 8, 2011, 12:58:00 AM12/8/11
to geditcom-ii...@googlegroups.com
Jim,

I am close to posting a new version. If you want ot try a beta it is at


i just updated for issue you mentioned in old email. I added another feature too when a child has not children, but does have a spouse, the name is preceded with a minus sign, so "+" indicate children in at least one marriage while "-" indicates no children but at least one documented spouse.

John Nairn
---------------
John Nairn (1-541-737-4265, FAX:1-541-737-3385)
Professor and Richardson Chair
Web Page: http://www.cof.orst.edu/cof/wse/faculty/Nairn/
FEA/MPM Web Page: http://oregonstate.edu/~nairnj

Reply all
Reply to author
Forward
0 new messages