Calculation Engine Expresion Names Restrictions

Aug 30, 2007 at 4:27 PM
Hi !

At CalculationEngine.Add the parameter for the name of the expression, is not allowing names with dots or other symbols:

Calculation.Engine.Add("CarpetaEstudio.Ficha", owner, "Carpeta.Ficha") // runs OK

next expression:

Calculation.Engine.Add(""\"\" + Carpeta.Ficha + \"\""", owner, "Carpeta.CodBarra") // returns

Invocation List: Could not resolve the name 'Carpeta'

Other try:

Calculation.Engine.Add("CarpetaEstudio.Ficha", owner, "Carpeta:Ficha") // runs OK

next expression:

Calculation.Engine.Add(""\"\" + Carpeta:Ficha + \"\""", owner, "Carpeta.CodBarra") // returns

Syntax Error: unexpected character ':', on line: 1 column: 14

Finally if i remove the separator char works:

Calculation.Engine.Add("CarpetaEstudio.Ficha", owner, "CarpetaFicha") // runs OK
Calculation.Engine.Add(""\"\" + CarpetaFicha + \"\""", owner, "CarpetaCodBarra") // runs OK


But removing the character is dangerous for the application context, those names are auto-generated, there is any way or any character i can use for replace dot notation in expression names ?


Coordinator
Aug 30, 2007 at 8:23 PM
Edited Aug 30, 2007 at 8:23 PM
Underscores are allowed in names so you could replace Carpeta:Ficha with Carpeta_Ficha
Aug 31, 2007 at 1:10 PM
Thanks, that should work.