We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How can I get a list of errors from a formula

I'm using the CalcQuickBase to add formula support to my application.

How can I get the error message is a formula fails to parse in some way. At the moment, you get a string returned but no indication if it is a string return value or an error message.

What am I missing. Should I rethrow and capture the exceptions?

Troy.

1 Reply

AS Athiram S Syncfusion Team June 18, 2013 04:47 AM UTC

Hi Troy,

Thanks for your interest in Syncfusion Products.

All the calculate functions return values in the type of "string". So, the Error strings too will be displayed in the form of string.

Yes, we can use the "Errorstrings" property and display the errors in the output.

We can catch the exception and use the error string as follows:

catch (Exception ex)
            {
                ..........................
                ..........................                
                return this.ErrorStrings[1].ToString();
                ..............................
                .............................
            }

Please let me know if you have any concerns.

Regards,
Athiram S

Loader.
Live Chat Icon For mobile
Up arrow icon