Click here to Skip to main content
15,891,316 members
Home / Discussions / C#
   

C#

 
GeneralRe: urgent help please Pin
S. Senthil Kumar3-Jul-05 3:29
S. Senthil Kumar3-Jul-05 3:29 
GeneralRe: urgent help please Pin
Dave Kreskowiak3-Jul-05 14:17
mveDave Kreskowiak3-Jul-05 14:17 
GeneralRe: urgent help please Pin
ksanju10008-Jul-05 19:35
ksanju10008-Jul-05 19:35 
GeneralRichttextbox - Fontstyles Pin
moon442-Jul-05 6:12
moon442-Jul-05 6:12 
GeneralRe: Richttextbox - Fontstyles Pin
Dario Solera2-Jul-05 6:24
Dario Solera2-Jul-05 6:24 
GeneralRe: Richttextbox - Fontstyles Pin
moon442-Jul-05 7:54
moon442-Jul-05 7:54 
GeneralRe: Richttextbox - Fontstyles Pin
Dario Solera2-Jul-05 22:30
Dario Solera2-Jul-05 22:30 
Question2nd code for - boolean error ? Pin
fracalifa2-Jul-05 0:56
fracalifa2-Jul-05 0:56 
Hi all,

here is the real code I am using for with improved code and conditions but I am running also into the bracket.

but the last contition is false BAKER is not Meyers and so the I should never run into the bracket (MessageBox ..)

string a = "MR";
string b = "MRS";
string c = "BAKER";
string d = "Meyers"; 

if
  (
	((string.Equals(a.TrimEnd().TrimStart().ToString().ToUpper(),"MR")) && 
	(string.Equals(b.TrimEnd().TrimStart().ToString().ToUpper(),"MRS"))) ||
	((string.Equals(a.TrimEnd().TrimStart().ToString().ToUpper(),"MRS")) && 
	(string.Equals(b.TrimEnd().TrimStart().ToString().ToUpper(),"MR"))) &&
	(string.Equals(c.TrimEnd().TrimStart().ToString().ToUpper(),
	d.TrimEnd().TrimStart().ToString().ToUpper()))  
  )
{
	MessageBox.Show("ERROR");
}


where is the fault ?!?!?

please help

Thanks Frank
AnswerRe: 2nd code for - boolean error ? Pin
leppie2-Jul-05 6:35
leppie2-Jul-05 6:35 
AnswerRe: 2nd code for - boolean error ? Pin
Robert Rohde2-Jul-05 6:50
Robert Rohde2-Jul-05 6:50 
GeneralRe: 2nd code for - boolean error ? Pin
fracalifa2-Jul-05 7:01
fracalifa2-Jul-05 7:01 
GeneralRe: 2nd code for - boolean error ? Pin
Guffa2-Jul-05 7:22
Guffa2-Jul-05 7:22 
GeneralRe: 2nd code for - boolean error ? Pin
DavidNohejl2-Jul-05 7:31
DavidNohejl2-Jul-05 7:31 
AnswerOT Pin
DavidNohejl2-Jul-05 6:57
DavidNohejl2-Jul-05 6:57 
GeneralRe: OT Pin
fracalifa2-Jul-05 7:04
fracalifa2-Jul-05 7:04 
GeneralRe: OT Pin
DavidNohejl2-Jul-05 7:17
DavidNohejl2-Jul-05 7:17 
GeneralRe: OT Pin
Colin Angus Mackay3-Jul-05 1:36
Colin Angus Mackay3-Jul-05 1:36 
Questionerror in bool condition ? Pin
fracalifa1-Jul-05 23:45
fracalifa1-Jul-05 23:45 
AnswerRe: error in bool condition ? Pin
Dario Solera1-Jul-05 23:52
Dario Solera1-Jul-05 23:52 
AnswerRe: error in bool condition ? Pin
Robert Rohde2-Jul-05 0:04
Robert Rohde2-Jul-05 0:04 
GeneralRe: error in bool condition ? Pin
fracalifa2-Jul-05 0:29
fracalifa2-Jul-05 0:29 
AnswerRe: error in bool condition ? Pin
User 66582-Jul-05 1:03
User 66582-Jul-05 1:03 
GeneralRe: error in bool condition ? Pin
fracalifa2-Jul-05 1:10
fracalifa2-Jul-05 1:10 
GeneralRe: error in bool condition ? Pin
User 66582-Jul-05 6:21
User 66582-Jul-05 6:21 
GeneralRe: error in bool condition ? Pin
fracalifa2-Jul-05 6:45
fracalifa2-Jul-05 6:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.