Error on displaying family detais
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
GenoPro Support Forum
Home        Members    Who's On
Welcome Guest ( Login | Register )
        



Error on displaying family detais Expand / Collapse
Author
Message
Post #17812 Posted 5/22/2007 12:13:53 AM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: Today @ 12:05:09 AM
GenoPro Version: 2.0.1.6
Posts: 235, Visits: 3,847
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

Post #17840 Posted 5/23/2007 2:58:27 AM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Customers
Last Login: 7/19/2008 5:55:28 PM
GenoPro Version: 2.0.1.5
Posts: 120, Visits: 429
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.

Post #17841 Posted 5/23/2007 3:12:34 AM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Customers
Last Login: 7/19/2008 5:55:28 PM
GenoPro Version: 2.0.1.5
Posts: 120, Visits: 429
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)), ""

Post #17843 Posted 5/23/2007 3:58:45 AM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 2:36:42 PM
GenoPro Version: 2.0.1.6
Posts: 1,093, Visits: 5,015
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"
Post #17848 Posted 5/23/2007 7:50:39 AM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Customers
Last Login: 7/19/2008 5:55:28 PM
GenoPro Version: 2.0.1.5
Posts: 120, Visits: 429
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

« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: GenoProSupport, JcMorin, Ron

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 2:53 PM

Copyright 1998-2008 GenoPro. All rights reserved. GenoPro and the GenoPro logo are trademarks.