Post
by SabineS » 26 May 2012 20:32
Sorry, I was out of town for most of the week. Thank you for the suggestions!
I think I re-entered the code from memory.
LifeDates2 doesn't work in this context, but LifeDates does.
For the second marriage, the code now looks like this:
=combinetext('with ',%INDI.~SPOU[2]>NAME[1]%,' ','') =combinetext('(',LifeDates(%INDI.~SPOU[2]>%),') ','') =combinetext('[IRN ',RecordId(%INDI.~SPOU[2]>%),']','') =combinetext(', ',%INDI.FAMS[2]>MARR[1].DATE:COMPACT%,'',''), =combinetext('',%INDI.FAMS[2]>MARR[1].PLAC%,'','')
Sort of clumsy, but it works; Jane, I think I made some mistakes entering your version, so I tried this one, and I was content having it working ... The marriages are shown only when there really are marriages - which is what I wanted.
I had another funny effect in the Family Group Sheet. The 'record' heading went like this:
%FAM.HUSB[1]>NAME[1]:SURNAME%, %FAM.HUSB[1]>NAME[1]:GIVEN_ALL%n%FAM.WIFE[1]>NAME[1]:SURNAME%, %FAM.WIFE[1]>NAME[1]:GIVEN_ALL%n[=RecordID(%FAM%)]
, resulting in as the first lines of the report:
DOE, John
MILLER, Elsie
[FRN 12345]
Now the funny effect was that the last ] always disappeared when I closed the program and re-opened it; the code in the 'record' heading always ended with the ), i.e. the last letter was missing. I also tried other variations, like putting the FRN in without the brackets, but then even the FRN itself disappeared.
I don't know why, and it doesn't seem logical, but it helped to add another n after the ], like this:
%FAM.HUSB[1]>NAME[1]:SURNAME%, %FAM.HUSB[1]>NAME[1]:GIVEN_ALL%n%FAM.WIFE[1]>NAME[1]:SURNAME%, %FAM.WIFE[1]>NAME[1]:GIVEN_ALL%n[=RecordID(%FAM%)]n
It doesn't show, and nothing is deleted when I close and re-open the program.
I very dearly love this software, but sometimes you really need a lot of time to get it doing what you want it to do ...
Sabine