|
|
Important Contributors FamilyTrees.GenoPro.com Customers Translator GenoPro version: 2.0.1.6
Last Login: Tuesday, December 16, 2008
Posts: 390,
Visits: 1,271
|
Hello everyone,Not a bug but related to the Rep Gene. I'm presently trying a bit of VBS programming and I'm struggling with DATES: 1) On your help site page http://www.genopro.com/sdk\Class/GenoDate/ , it is shown an 'Anniversary' function. It doesn't seem to work with me? 2) I saw, for example, in the MS VBS ref site http://msdn2.microsoft.com/en-us/library/3ca8tfek.aspx, a 'DatePart' function. I tried it but again it doesn't seem to work/be supported (despite I've got .NET Framework 3.0 installed). Question: I'd like to know if these sample problems are due to the shortage of my programming skill or if it is due to another reason? 3) Regarding the SortByKey() function, I kindly suggest Genopro to expand on the subject (in adding 'examples') as presently we, users, don't have a clue about the accepted supported arguments. Thank you for your time, JC
|
|
|
Gamma Moderators Administrators FamilyTrees.GenoPro.com Customers GenoPro version: 3.1.0.1
Last Login: Monday, May 12, 2025
Posts: 952,
Visits: 10,077
|
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 2 days ago @ 8:52 PM
Posts: 3,428,
Visits: 26,565
|
I too found that the GenoDate object property Anniversary was not recognized. There is a Birthday property for an Individual (i.Birthday) but that does not help for anniversaries of other dates e.g. marriage.It is important not to confuse GenoPro dates i.e. GenoDate objects and its associated methods and properties with a VBscript 'date expression'. the VBScript function DatePart requires a 'date expression'. GenoPro date objects can be converted to 'date expressions' using the GenoDate ToString method e.g. DatePart("q", i.Birth.Date.ToString("d-MMM-yyyy") Note that the 'date expression' must be valid and not empty. You can check this using the VBScript function IsDate e.g. IsDate(i.Birth.Date.ToString("d-MMM-yyyy")) You can download a Help file on Windows Scripting (VBScript & JScript) from here.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Edited: Tuesday, March 4, 2008 by
Ron
|
|
|
Important Contributors FamilyTrees.GenoPro.com Customers Translator GenoPro version: 2.0.1.6
Last Login: Tuesday, December 16, 2008
Posts: 390,
Visits: 1,271
|
Thank you both. I was actually trying to group an Ind collection with a Fam one into a repertory and had problem reading, extracting and manipulating the Birth and marriage dates. I however succeeded after many trial & errors, almost code line after code line. I attached my revised version of the Birthday '& Anniversary' listing. I tested it with my own tree and everything seems fine. I changed the programming language from Jscript to VBscript as I thought it would be easier. So before running it, change lines 2 & 3 of the associated config.xml file to:<Skin Name="Birthday & Anniversary Listing"> <ReportGenerator ScriptLanguage="VBScript" > Pity it's not Language portable yet! JC
default.htm
(99 views,
5.89 KB)
|