|
|
|
Forum 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
|
|
|
|
|
Forum Master
      
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.
|
|
|
|
|
Forum 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
|
|
|
|
|
Forum 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
|
|
|
|
|
Forum Master
      
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.
|
|
|
|
|
Forum 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
|
|
|
|
|
Legendary Master
       
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 |
|
|
|
|
|
Forum 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
|
|
|
|
|
Legendary Master
       
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 .
|
|
|
| | |