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

GenoPro Support Forum




Error on displaying family detais

Click to view RSS...
Author
Posted Wednesday, May 23, 2007 - Post #17848
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
Ron,

You're welcome. In no way I intended to give the best possible solution. I just wanted to go ahead immediately and therefore came up with this fix. It's a fix that is purely syntactical of nature, not knowing the exact contents of the report.

rgds,

Ronald

Edited: Wednesday, May 23, 2007 by rboshuis

Posted Tuesday, May 22, 2007 - Post #17843
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 8 hours ago
Posts: 3,408, Visits: 26,277
Thanks for providing a solution to this Ronald. I do have a different solution to the first instance in my development version of the skin that I will make available in a few days.

You could use i.Session("NamePossessive") instead of StrPossessiveProperNoun(i.Session("NameShort"),Nothing)

I think I can improve the efficiency of my code in the 2nd usage by perhaps storing the possessive form of the spouse name alternatives in the Dictionary. A 'P' attribute is already used for Plural forms so I could use 'G' for genetive case as sometimes this appears to be used in place of the word possessive.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Edited: Wednesday, May 23, 2007 by Ron
Posted Tuesday, May 22, 2007 - Post #17841
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
For those who want to change this in order to get going:

Change code/lang.vbs line 316

from:

strHyperlinkText = Dic.FormatPhrase("PhFamilyWith", StrPossessiveProperNoun(i.Session("NameShort")), Dic.Ordinal(nFamily), strSpouseName, "")

to:

  strHyperlinkText = Dic.FormatPhrase("PhFamilyWith", StrPossessiveProperNoun(i.Session("NameShort"),Nothing), Dic.Ordinal(nFamily), strSpouseName, "")

and change the same way line 332 to:

  WriteHtmlPicturesLarge spouse, "", Dic.FormatString("FmtPictures", StrPossessiveProperNoun(Util.StrFirstCharUCase(strSpouseType), Nothing)), ""

Posted Tuesday, May 22, 2007 - Post #17840
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
I have indeed exactly the same error, and when looking at lang.vbs it does seem there are two calls to StrPossessiveProperNoun which only have a single parameter in stead of the two that are declared.

In 2.0.0.4 the function was only expecting 1 parameter, but in 2.0.0.5 it expects 2.

I added ,Nothing to the call to StrPossessiveProperNoun on both lines 316 and 332 and now it works.

Edited: Tuesday, May 22, 2007 by rboshuis

Posted Monday, May 21, 2007 - Post #17812
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
GenoPro version: 3.0.0.7

Last Login: Sunday, November 26, 2023
Posts: 213, Visits: 4,464
on Ver: 2.0.0.5

When changing the tag "fHideFamilyDetails" on config.xml from "Y" to "N" I get this error massege when trying to generate a report:

Error at line 316 (Code/Lang.vbs) generating 'Beraha-Rivka-ind00676.htm': ‏‏מספר ארגומנטים שגוי או הקצאת מאפיין לא חוקית: 'StrPossessiveProperNoun'

‏‏שגיאת זמן ריצה של Microsoft VBScript 800A01C2

It worked fine on ver 2.0.0.4



Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse
Active: 2 - 1 guest, 0 members, 0 anonymous.
Refresh
No members currently viewing this topic!