GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
Any arguments limitation in narrative phrases?


https://support.genopro.com/Topic12100.aspx
Print Topic | Close Window

By jcguasp - Friday, July 28, 2006
I'm reviewing the translation of "PhFamilyWith" narrative phrase. I added a 4th and 5th argument in Lang.vbs and in the dic phrase. The arg No 4 was OK but the system doesn't accept the arg No 5 giving this error at gene time: 

Error in FormatPhrase - Not enough arguments for template '{3} [{1} ]{5} {4}{0} avec {2}'. Argument index {5} is out of range.

I'd like to know if there is a limitation on the arguments quantity or am I doing something wrong?

Addendum: I only get the error message when the parameter fHideFamilyDetails = "Y"

By genome - Friday, July 28, 2006
I've used 13 arguments so 6 (0-5) is certainly OK. What is your code line where PhFamilyWith is referenced? You must supply all 6 arguments in each call.
By jcguasp - Friday, July 28, 2006
Ron,

My mistake. I forgot that for that particular phrase generation, the codes when fHideFamilyDetails = "N", are located in Lang.vbs.

When set to "Y", the codes are in the Ind.htm template. Hoops. It's OK now.

By GenoProSupport - Friday, July 28, 2006
jcguasp (7/28/2006)
I'd like to know if there is a limitation on the arguments quantity

GenoPro does not have any limit on the number of arguments.  There is a limit however.  This limit is probably a few thousand arguments determined by the specifications of the scripting language (VBScript, JavaScript) or by the memory allocated for the stack.