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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

CalcQuick arguments separator

Thread ID:

Created:

Updated:

Platform:

Replies:

120143 Sep 3,2015 03:18 PM Sep 4,2015 05:12 AM Windows Forms 1
loading
Tags: Calculate
Jorge
Asked On September 3, 2015 03:18 PM

Hi,

I dont know if you are still supporting this product, but I would really appreciate your help. I'm working with CalcQuick in a project, and I'm having some trouble tryng to set a separator argument. All the functions that require more than one argument returns a "Input string was not in a correct format" message error or not return a valid value.  I guess it's something related with regional options , but I already change regional options to ENG-US, and the problem persists.


  static void Main(string[] args)
        {
            CalcQuick calc = new CalcQuick();            
            calc["Argument1"] = "5";
            calc["Argument2"] = "3";         
            calc["Operation"] = "=SIN([Argument1])";
            calc["Operation2"] = "=SUM([Argument1], [Argument2])";
            string operation = calc["Operation"]; //This works fine
            string operation2 = calc["Operation2"]; //This give me "Input string was not in a correct format" error
        }

Any help would be appreciate...

Visual Studio 2013
Syncfusion Essential Studio 4.2.60
Windows 10 Home


I attached a project sample


Attachment: Args_Separator_Test_39e2b63c.rar

Adhikesevan Kothandaraman [Syncfusion]
Replied On September 4, 2015 05:12 AM

HI Jorge,

Thank you for your interest in Syncfusion products.


We analyzed your reported query at our end. To set the argument separator for the regional language, which can be achieved by setting the ParseArgumentSeperator value as desired character. Please refer to the below code example,


Code Example:

//Set the Argument and Decimal separator

CalcEngine.ParseArgumentSeparator = ',';
CalcEngine.ParseDecimalSeparator = '.';

Please refer to  the below Forum for setting the ParseArgumentSeperator in the regional language.


Forum Link:
http://www.syncfusion.com/forums/72345/problem-with-decimal-separator-what-am-i-missing


Regards,
Adhi.


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.

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

;