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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

String compare ?

Thread ID:

Created:

Updated:

Platform:

Replies:

26535 Mar 24,2005 04:31 PM UTC Jul 14,2005 11:39 PM UTC WinForms 3
loading
Tags: Calculate
Brad King
Asked On March 24, 2005 04:31 PM UTC

I''ve been searching over the eval docs looking for a way to do a simple string comparison, like .Net string.Compare, but I''m not seeing it. I could add it, but seems like something I might have missed.

Administrator [Syncfusion]
Replied On March 25, 2005 02:20 AM UTC

In Essential Calculate, strings need to be enclosed in parenthesis. For example, in the \Syncfusion\Essential Suite\3.0.1.0\Windows\Calculate.Windows\Samples\DataGridCalculator, if you load the single DataGrid sample and type the string abc in cell A3, then you can type = A3="abc" into the textbox and press Compute, you will see the logical value TRUE displayed. So, you can use the logical operators to compare strings as long as any constant strings in the expression are enclosed in parens. Please note that in 3.0.1.0, the order returned by < and > are switched (ie. "a" > "b" returns true). This has been changed for the upcoming 3.2 release.

Byron Tate
Replied On July 14, 2005 05:43 PM UTC

you mean that strings must be inclosed in quotes, not ''parentheses'' , right?

Administrator [Syncfusion]
Replied On July 14, 2005 11:39 PM UTC

Yes. Double quotes.

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

;