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

problem doing string equality check in if stmt

Thread ID:

Created:

Updated:

Platform:

Replies:

31802 Jul 14,2005 05:41 PM UTC Jul 15,2005 01:41 AM UTC WinForms 2
loading
Tags: Calculate
Byron Tate
Asked On July 14, 2005 05:41 PM UTC

I need to have the value of a NamedRange be a string, and use the NamedRange key in an if stmt like this: engine.AddNamedRange("Y","B12"); engine.AddNamedRange("X","if(D0=Y,A0+B0,(A0))"); But this D0=Y evals to false. Following works: engine.AddNamedRange("X","if(D0=\"B12\",A0+B0,(A0))"); So this looks like a bug.

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

>>engine.AddNamedRange("Y","B12"); This makes the namedrange Y refer to the cell B12. If you want the namedrange Y to refer to the string B12, then try: engine.AddNamedRange("Y","\"B12\"");

Byron Tate
Replied On July 15, 2005 01:41 AM UTC

thanks! quick help as usual.

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

;