If statement in expression - Can anyone see what is wrong with this!?!?
(SUBSTRING( @[User::FileWeJustFound],79,3) == "HO\" ? SUBSTRING( @[User::FileWeJustFound],79,2) : (SUBSTRING( @[User::FileWeJustFound],79,3) == "HMR" ? SUBSTRING( @[User::FileWeJustFound],79,4) : SUBSTRING( @[User::FileWeJustFound],79,3))) Cheers David
January 12th, 2011 6:32am

Hi David, Your expression seems be right, what is the message error when click ok?Vctor M. Snchez Garca (ES) (BI) Hope this help. Please vote if you find this posting was helpful. if this is an answer to your question, please mark it. http://bifase.blogspot.com | http://twitter.com/atharky
Free Windows Admin Tool Kit Click here and download it now
January 12th, 2011 6:44am

Attempt to parse expresstion ... failed. The expression might contain and invalid token, an incomplete token, or an invalid element. It might not be well formed, or might be missing part of a required element such as a parenthesis. This is when I try to evaluate it...
January 12th, 2011 6:48am

ahh ok you should change the SUBSTRING( @[User::FileWeJustFound],79,3) == "HO\" ... by SUBSTRING( @[User::FileWeJustFound],79,3) == "HO\\" The expression editor use the same escape characters than C#. You must insert one more back slash. Víctor M. Sánchez García (ES) (BI) Hope this help. Please vote if you find this posting was helpful. if this is an answer to your question, please mark it. http://bifase.blogspot.com | http://twitter.com/atharky
Free Windows Admin Tool Kit Click here and download it now
January 12th, 2011 6:53am

Brilliant - thanks you very much.
January 12th, 2011 7:00am

You're welcome!Vctor M. Snchez Garca (ES) (BI) Hope this help. Please vote if you find this posting was helpful. if this is an answer to your question, please mark it. http://bifase.blogspot.com | http://twitter.com/atharky
Free Windows Admin Tool Kit Click here and download it now
January 12th, 2011 8:56am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics