Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
how to handle error while using webCalmanager.calculate
posted

Hi

I have a question about how to check the formula string is in the corrected format that the method "calculate" can calculate it.

for example, if i put the formula string like 

answer = uc1.Calculate("+").ToDecimal()           '''''''''condition 1

instead of     

answer = uc1.Calculate("2+3").ToDecimal().       '''''''''condition 2

how can i set answer = 0 on event like condition1