Report Generator error with twin
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 )
        


««123»»

Report Generator error with twin Expand / Collapse
Author
Message
Post #13610 Posted 10/5/2006 10:18:54 AM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Customers
Last Login: 6/19/2008 2:38:47 AM
GenoPro Version: 2.b18g
Posts: 120, Visits: 157
Yes, that is the section.

Frank1

Post #13612 Posted 10/5/2006 11:17:28 AM


Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master This user is an important contributor to the GenoPro community This user is an important contributor to the translation of GenoPro 

Group: Customers
Last Login: 2 days ago @ 8:09:39 AM
GenoPro Version: 2.0.1.6
Posts: 552, Visits: 7,292
Then try either:

try to change i = 0 to i = 1 and see if there is any change.

OR

try changing the second part to hard coded number. Like: For i=0 to 1 and see what happens.

Post #13615 Posted 10/5/2006 6:24:28 PM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Customers
Last Login: 6/19/2008 2:38:47 AM
GenoPro Version: 2.b18g
Posts: 120, Visits: 157
Hello

I tried a few things:

On line 368 as report error suggests -

For i = 0 to oRepertoryTwins.Entry("F" & obj.id).count-1

I changed "i = 0" to "i = 1". The same error.

On line 369 I tried -

strTwinId = oRepertoryTwins.Entry("F" & obj.id).Object(i)

I changed "....Object(i)" to "....Object(1)". The same error.

There are no other "i" close this line 368. The report error states that there is an "illigal assignment 'i'". I think that that is exactly correct. On line 368, "i" is assigned up to "oRepertoryTwins.Entry("F" & obj.id).count-1". This is the cause of the error. This term fails for some reason.

Since I don't know how this program works, I don't know where to go from here.

Thanks for the help up to now. Hope that someone can help with this.

Frank1

Post #13616 Posted 10/5/2006 7:02:31 PM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Customers
Last Login: 6/19/2008 2:38:47 AM
GenoPro Version: 2.b18g
Posts: 120, Visits: 157
Hello

I did another test:

I commented out the "For ..... Next" lines so that the line that has the error is no longer in play (the "For...." - line 368):

'   For i = 0 to oRepertoryTwins.Entry("F" & obj.id).count - 1
    strTwinId = oRepertoryTwins.Entry("F" & obj.id).Object(0)
    WriteNarrativeTwin oRepertoryTwins.Entry(strTwinId).Object(0)
'   Next

Also I changed the "...Object(i)" to "...Object(0)" not to reference the "i" which no longer has an assignment.

The report generator now runs through without error. The report appears to be o/k. As I said before I don't understand the program flow here, so I don't know what other damage this might have done. I have to assume that there was a reason for having a 'For....Next" loop in the first place.

I hope that this helps figure out the cause of this problem. Please remember that this problem only occurs when the Parameter - fHideFamilyDetails="N" in config.xml is set (default being "Y").

Thanks

Frank1

Post #13617 Posted 10/5/2006 7:21:10 PM


Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master This user is an important contributor to the translation of GenoPro This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: 2 days ago @ 2:31:31 AM
GenoPro Version: 2.0.1.6
Posts: 717, Visits: 6,045
Frank1 (10/5/2006)
Hello

Please remember that this problem only occurs when the Parameter - fHideFamilyDetails="N" in config.xml is set (default being "Y").

Thanks

Frank1


Since you have run the report with the original skin and did not have any error, why don`t you run a report with a copy of the original skin and just change from N to Y as decribed above. I have plenty of twins in my tree and never had a problem.
I think you should take a more systematic approach to changing things and don`t assume. One change at a time from the original skin and look at the results. You will find the problem much faster.
Post #13618 Posted 10/5/2006 7:38:05 PM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Customers
Last Login: 6/19/2008 2:38:47 AM
GenoPro Version: 2.b18g
Posts: 120, Visits: 157
Hello maru-san

I just did what you suggested (I think again).

On a clean skin, with one pair of twins, the report does NOT generate an error.

Change the Parameter:

     fHideFamilyDetails="Y" to:

     fHideFamilyDetails="N"

I get the same error as before - illegal assignment "i" on line 368 in lang.vbs.

Thanks

Frank1

Post #13619 Posted 10/5/2006 8:47:49 PM


Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master This user is an important contributor to the translation of GenoPro 

Group: Administrators
Last Login: Today @ 9:31:29 AM
GenoPro Version: 2.0.1.6
Posts: 3,517, Visits: 14,852
Thanks for reporting the bug.  The problem is the variable i is not declared as local, which is the value of an individual.  The solution is to add i to the local variables

Dim oRepertoryTwins, strTwinId, oTwin, oTwins, i

Here is the full subroutine:

Sub WriteNarrativeTwins(obj)
 Dim oRepertoryTwins, strTwinId, oTwin, oTwins, i
 Set oRepertoryTwins = Session("oRepertoryTwins")

 Select Case obj.class
 Case "Family"
  If oRepertoryTwins.KeyCounter("F" & obj.id) > 0 Then
   For i = 0 to oRepertoryTwins.Entry("F" & obj.id).count-1
    strTwinId = oRepertoryTwins.Entry("F" & obj.id).Object(i)
    WriteNarrativeTwin oRepertoryTwins.Entry(strTwinId).Object(0)
   Next
  End If
 Case "Individual"    
  If oRepertoryTwins.KeyCounter("I" & obj.id) > 0 Then
   strTwinId = oRepertoryTwins.Entry("I" & obj.id).Object(0)
   WriteNarrativeTwin oRepertoryTwins.Entry(strTwinId).Object(0)
  End If
 End Select
End Sub




Post #13620 Posted 10/5/2006 9:08:38 PM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Customers
Last Login: 6/19/2008 2:38:47 AM
GenoPro Version: 2.b18g
Posts: 120, Visits: 157
Hello GenoProSupport

That now works.

Thank you so much for that.

Looking forward to Version 2. - looking great so far.

Thank you

Frank1

Post #13621 Posted 10/5/2006 9:38:32 PM


Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master This user is an important contributor to the translation of GenoPro 

Group: Administrators
Last Login: Today @ 9:31:29 AM
GenoPro Version: 2.0.1.6
Posts: 3,517, Visits: 14,852
Frank1 (10/5/2006)
That now works. Thank you so much for that.

If I can reproduce the bug, I can fix it.  What triggered my attention was the change in parameter fHideFamilyDetails="N".

I generated a report using your .gno file and got the error.  The rest was a piece of cake :P.

Looking forward to Version 2.

Me too!  It has been 8 years and 3 months since the release of version 1.00.  GenoPro 2.0 is well overdue .