ReSharper b. 300 warning

Hi

In the code

string messageText = "You have selected several recods in the table.\n" +
"Would you like to print labels for all selected recordes or only for active one?\n\n" +
"YES\tgenerate labels for all selection\n" +
"NO\tgenerate label only for active record\n" +
"CANCEL\tterminate labels printing\n";

questionResult= CheckPMainTableSelections(messageText);

marking "messageText" at the last code line with the warning "Expresion is always false"

Why is that???

Sergey

1 comment
Comment actions Permalink

This is definetly a problem in our NRE analysis
But you're using old build - there is more fresh one

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Sergey Vasiliev" <no_reply@jetbrains.com> wrote in message
news:15684250.1164035642072.JavaMail.itn@is.intellij.net...

Hi

>

In the code

>

string messageText = "You have selected several
recods in the table.\n" +
"Would you like to print
labels for all selected recordes or only for active one?\n\n" +
"YES\tgenerate labels for all
selection\n" +
"NO\tgenerate label only for
active record\n" +
"CANCEL\tterminate labels
printing\n";

>

questionResult=
CheckPMainTableSelections(messageText);

>

marking "messageText" at the last code line with the warning "Expresion is
always false"

>

Why is that???

>

Sergey



0

Please sign in to leave a comment.