GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




Removing religious marriage messge if only civil message is applicable...

Click to view RSS...
Author
Posted Sunday, September 25, 2005 - Post #8624
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
GenoPro version: 2.0.1.6

Last Login: Tuesday, November 10, 2015
Posts: 102, Visits: 499
When I run a report (14b), I always get the message that there was a religious message before I got the one for the civil one. However, I would expect to not have a religious marriage if one never happened and I never entered data for it.

However, it does always come with the message. I added things like {?0} and {?4} but they don't seem to work to make these sentences depending on the data itself.

Any idea?

rgds,

Ronald

Posted Sunday, September 25, 2005 - Post #8627
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Tuesday, October 28, 2025
Posts: 4,886, Visits: 22,799
I am redoing the dialog for marriages and divorces.  Beta 15 will have a new structure to store religious and civil marriages.  Instead of having two sections, one for religious and civil, GenoPro will offer the option to add as many marriages as necessary, similar to the occupations, educations and pictures.

For extra details, please read post Multiple Marriages / Family Number.

Posted Monday, September 26, 2005 - Post #8642
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
GenoPro version: 2.0.1.6

Last Login: Tuesday, November 10, 2015
Posts: 102, Visits: 499
Dan, that would be great, however, I am asking the question in a more broader sense. I am translating the report to Dutch and find that I'll need some more conditional phrases.

I thought that  [{?0|1} and] would mean that if both of these would be empty, it wouldn't output the and...

However, that didn't work as expected with the marriage phase.

Can you shed some light on the conditional part of the narrative phrases?

Thanks a lot,

rgds,

Ronald

Posted Monday, September 26, 2005 - Post #8644
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Tuesday, October 28, 2025
Posts: 4,886, Visits: 22,799
Oh, I see.  The | means "or" and the & means "and".  Therefore the statement {?0|1} means "if 0 or 1".  Here is a summary:

{?0|1} means "if parameter 0 exists or parameter 1 exists then" => if one parameter exists.
{?!0|1} means "if not (parameter 0 exitst or parameter 1 exists) then" => if both/all parameters are empty.
{?0&1} means "if parameter 0 exists and parameter 1 exists then" => if both/all parametes exists.
{?!0&1} means "if not (parameter 0 exists and parameter 1 exists) then" => if one parameter is empty.

Edited: Tuesday, September 27, 2005 by GenoProSupport

Posted Monday, September 26, 2005 - Post #8656
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
GenoPro version: 2.0.1.6

Last Login: Tuesday, November 10, 2015
Posts: 102, Visits: 499
Thanks Dan, That's what I thought...

However, having the entry:

<PhMarriage T="{ &#32;}Zij zijn getrouwd [{?0} in de kerk {0}[ door voorganger {1}]{2}[, met als getuigen {3}][[{?0|1|2|3}, en verder] voor de wet{4}[ door {5}]{6}[, met als getuigen {7}]]]." />

or

<PhMarriage T="{ &#32;}Zij zijn getrouwd [ in de kerk {?0}[ door voorganger {1}]{2}[, met als getuigen {3}][[{?0|1|2|3}, en verder] voor de wet{4}[ door {5}]{6}[, met als getuigen {7}]]]." />

Always results in

Zij zijn getrouwd  in de kerk  voor de wet op 13-May-1988 te Enschede

Which means the report generator didn't even notice the fact that the marriage date for the religious marriage was null....and still generates the "in de kerk" phrase. I have the same problem with the english version....

...or is this just a problem with the marriage date? and should I be able to use this properly on other narrative phrases?

A little confused, thanks in advance, rgds,

Ronald



Edited: Monday, September 26, 2005 by rboshuis
Posted Monday, September 26, 2005 - Post #8658
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Tuesday, October 28, 2025
Posts: 4,886, Visits: 22,799
Somehow the phrase is missing some brackets.  Try:

<PhMarriage T="{ &#32;}Zij zijn getrouwd [[ in de kerk {0}[ door voorganger {1}]{2}[, met als getuigen {3}]][[{?0|1|2|3}, en verder] voor de wet{4}[ door {5}]{6}[, met als getuigen {7}]]]." />

By the way, this phrase will be re-done for Beta 15 with the new marriage & divorce dialog.

Edited: Monday, September 26, 2005 by GenoProSupport

Posted Monday, September 26, 2005 - Post #8659
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
GenoPro version: 2.0.1.6

Last Login: Tuesday, November 10, 2015
Posts: 102, Visits: 499
yep, that did the trick. For those who have the same thing in English, the same kind of fix works. So that whole track about the same date being used for religious as well as civil marriages can be solved.

I've had a look at the original brackets and they seem fine with me. Just to make this simple human being understand :-) could you elaborate why the brackets you placed were missing?

Thanks a lot,  Dan!

Especially for the superfast reponse..... incredible!

Posted Monday, September 26, 2005 - Post #8660
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Tuesday, October 28, 2025
Posts: 4,886, Visits: 22,799
I need to document the features of phrase generator.  The brackets means remove anything inside them if its content is empty.

For instance, the following:

Report.WritePhrase "Dan was born [ in {0}][ on {1}].", "Sherbrooke", "8-Sep-1974"

If the argument {0} (city of birth) is empty, then the whole content of [ born in {0}] is empty which will result in "Dan was born on 8-Sep-1974".  The {?0} is somewhat the opposite; it does not write the value but counts as it is there.  For instance writing:

Report.WritePhrase "Dan was born [ in {?0}][ on {?1}].", "Sherbrooke", "8-Sep-1974"

would produce "Dan was born in on ."

Edited: Monday, September 26, 2005 by GenoProSupport

Posted Monday, September 26, 2005 - Post #8661
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
GenoPro version: 2.0.1.6

Last Login: Tuesday, November 10, 2015
Posts: 102, Visits: 499
But why were the extra brackets required?

Apologies for my ignorence, I am just trying to understand the behaviour...... :-)

rgds,

Ronald

Posted Monday, September 26, 2005 - Post #8662
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Tuesday, October 28, 2025
Posts: 4,886, Visits: 22,799
rboshuis (9/26/2005)
But why were the extra brackets required?

I think the outer brackets in pink are optional.  At the moment, I cannot run the code to confirm this.

Edited: Monday, September 26, 2005 by GenoProSupport



Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse