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.
ADAdministrator Syncfusion Team March 24, 2005 09:20 PM
In Essential Calculate, strings need to be enclosed in parenthesis. For example, in the \Syncfusion\Essential Suite\126.96.36.199\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 188.8.131.52, the order returned by < and > are switched (ie. "a" > "b" returns true). This has been changed for the upcoming 3.2 release.
BTByron TateJuly 14, 2005 12:43 PM
you mean that strings must be inclosed in quotes, not ''parentheses'' , right?
ADAdministrator Syncfusion Team July 14, 2005 06:39 PM