@@ -53,7 +53,7 @@ public Operand VisitMulDiv_fun(mathParser.MulDiv_funContext context)
5353 return Operand . Create ( 0 ) ;
5454 }
5555 if ( firstValue . Type == OperandType . STRING ) {
56- var a = firstValue . ToDate ( $ "Function ' { t } ' parameter 1 is error!" ) ;
56+ var a = firstValue . ToDate ( null ) ;
5757 if ( a . IsError == false ) firstValue = a ;
5858 }
5959 if ( firstValue . Type == OperandType . DATE ) {
@@ -63,7 +63,7 @@ public Operand VisitMulDiv_fun(mathParser.MulDiv_funContext context)
6363 }
6464
6565 if ( secondValue . Type == OperandType . STRING ) {
66- var a = secondValue . ToDate ( $ "Function ' { t } ' parameter 2 is error!" ) ;
66+ var a = secondValue . ToDate ( null ) ;
6767 if ( a . IsError == false ) secondValue = a ;
6868 }
6969 if ( secondValue . Type == OperandType . DATE ) {
@@ -83,7 +83,7 @@ public Operand VisitMulDiv_fun(mathParser.MulDiv_funContext context)
8383 return Operand . Error ( $ "Function '{ t } ' parameter 2 is error!") ;
8484 }
8585 if ( firstValue . Type == OperandType . STRING ) {
86- var a = firstValue . ToDate ( $ "Div 0 is error!" ) ;
86+ var a = firstValue . ToDate ( null ) ;
8787 if ( a . IsError == false ) firstValue = a ;
8888 }
8989 if ( firstValue . Type == OperandType . DATE ) {
@@ -136,11 +136,11 @@ public Operand VisitAddSub_fun(mathParser.AddSub_funContext context)
136136 }
137137 if ( t == "+" ) {
138138 if ( firstValue . Type == OperandType . STRING ) {
139- var a = firstValue . ToDate ( $ "Function ' { t } ' parameter 1 is error!" ) ;
139+ var a = firstValue . ToDate ( null ) ;
140140 if ( a . IsError == false ) firstValue = a ;
141141 }
142142 if ( secondValue . Type == OperandType . STRING ) {
143- var a = secondValue . ToDate ( $ "Function ' { t } ' parameter 2 is error!" ) ;
143+ var a = secondValue . ToDate ( null ) ;
144144 if ( a . IsError == false ) secondValue = a ;
145145 }
146146 if ( firstValue . Type == OperandType . DATE && secondValue . Type == OperandType . DATE ) {
@@ -161,11 +161,11 @@ public Operand VisitAddSub_fun(mathParser.AddSub_funContext context)
161161 return Operand . Create ( firstValue . NumberValue + secondValue . NumberValue ) ;
162162 } else if ( t == "-" ) {
163163 if ( firstValue . Type == OperandType . STRING ) {
164- var a = firstValue . ToDate ( $ "Function ' { t } ' parameter 1 is error!" ) ;
164+ var a = firstValue . ToDate ( null ) ;
165165 if ( a . IsError == false ) firstValue = a ;
166166 }
167167 if ( secondValue . Type == OperandType . STRING ) {
168- var a = secondValue . ToDate ( $ "Function ' { t } ' parameter 2 is error!" ) ;
168+ var a = secondValue . ToDate ( null ) ;
169169 if ( a . IsError == false ) secondValue = a ;
170170 }
171171 if ( firstValue . Type == OperandType . DATE && secondValue . Type == OperandType . DATE ) {
@@ -3611,7 +3611,7 @@ public Operand VisitLOOKUP_fun(mathParser.LOOKUP_funContext context)
36113611 } ;
36123612
36133613 foreach ( var item in firstValue . ArrayValue ) {
3614- var json = item . ToJson ( "Function LOOKUP parameter 1 error!" ) ;
3614+ var json = item . ToJson ( null ) ;
36153615 if ( json . IsError == false ) {
36163616 engine . Json = json ;
36173617 try {
0 commit comments