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.

problem doing string equality check in if stmt

Thread ID:





31802 Jul 14,2005 01:41 PM Jul 14,2005 09:41 PM Windows Forms 2
Tags: Calculate
Byron Tate
Asked On July 14, 2005 01:41 PM

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 07:38 PM

>>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 14, 2005 09:41 PM

thanks! quick help as usual.


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.

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.