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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How can I get a list of errors from a formula

Thread ID:

Created:

Updated:

Platform:

Replies:

109475 Jun 14,2013 08:28 PM UTC Jun 18,2013 04:47 AM UTC WPF 1
loading
Tags: SfCalculator
Troy Magennis
Asked On June 14, 2013 08:28 PM UTC

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.

Athiram S [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;