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

C#

 
Questionprocess wont start.... Pin
kb1ibh1-Oct-07 14:26
kb1ibh1-Oct-07 14:26 
AnswerRe: process wont start.... Pin
PIEBALDconsult1-Oct-07 14:29
mvePIEBALDconsult1-Oct-07 14:29 
GeneralRe: process wont start.... Pin
kb1ibh1-Oct-07 14:33
kb1ibh1-Oct-07 14:33 
GeneralRe: process wont start.... Pin
PIEBALDconsult1-Oct-07 14:43
mvePIEBALDconsult1-Oct-07 14:43 
QuestionMore if's? Pin
MasterSharp1-Oct-07 14:08
MasterSharp1-Oct-07 14:08 
AnswerRe: More if's? Pin
PIEBALDconsult1-Oct-07 14:19
mvePIEBALDconsult1-Oct-07 14:19 
AnswerRe: More if's? Pin
Christian Graus1-Oct-07 14:19
protectorChristian Graus1-Oct-07 14:19 
AnswerRe: More if's? Pin
Matthew Cuba1-Oct-07 16:19
Matthew Cuba1-Oct-07 16:19 
Hi,

MasterSharp wrote:
Forum C#
Subject: Re: More if's?
Sender: MasterSharp
Date: 20:08 1 Oct '07
How do you make it so an if statement has a lot of things to match? It's hard to explain, but instead of '&&', is there a way to make it so you can have a bunch of if's to follow? I hope you understand what I mean... Thanks in advance, M.S.




The long and short of it is that you can chain together as many expressions as you like with &&'s and ||'s.

I'd recommend picking up an introductory C# book - there are a number of good ones. Jesse Liberty's "Learning C#" is a good one, or you might find the Head First C# book interesting to read - it isn't your standard C# text. Apress has some good ones too. I have several books on the subject and each provides a different perspective.

I think that you'd really benefit by getting one of these books and working through it. Most have exercises, and those are helpful. There are a bunch of great folks here at Code Project who can answer questions, but you're not going to learn the language nearly as well as if you invest some time with a good text - your question indicates that you are new to the language and probably haven't worked through an introductory text, because just about any good introductory text would have provided the answer to that question and TONS of others you are likely to have along the way.

.NET development, and programming in general, is a journey and NONE of us has it all figured out - if you'll invest the time upfront with a good text on the language, and then experiment along the way, read the MS-provided help pages, you'll likely be quite capable at developing C# apps in a reasonable period of time. Of course, when you are stumped on a program, there are a bunch of folks here that would be happy to take a look at the code snippet and respond. At least that has been my experience.

Good Luck!


It isn't enough to do well in life.
One must do good when and where one can.
Otherwise, what's the point?

GeneralRe: More if's? Pin
MasterSharp1-Oct-07 14:27
MasterSharp1-Oct-07 14:27 
GeneralRe: More if's? Pin
PIEBALDconsult1-Oct-07 14:35
mvePIEBALDconsult1-Oct-07 14:35 
GeneralRe: More if's? Pin
MasterSharp1-Oct-07 14:48
MasterSharp1-Oct-07 14:48 
GeneralRe: More if's? Pin
Christian Graus1-Oct-07 14:52
protectorChristian Graus1-Oct-07 14:52 
GeneralRe: More if's? Pin
PIEBALDconsult1-Oct-07 14:59
mvePIEBALDconsult1-Oct-07 14:59 
GeneralRe: More if's? Pin
Christian Graus1-Oct-07 15:02
protectorChristian Graus1-Oct-07 15:02 
GeneralRe: More if's? Pin
Christian Graus1-Oct-07 14:49
protectorChristian Graus1-Oct-07 14:49 
GeneralRe: More if's? Pin
MasterSharp1-Oct-07 15:19
MasterSharp1-Oct-07 15:19 
GeneralRe: More if's? Pin
PIEBALDconsult1-Oct-07 15:23
mvePIEBALDconsult1-Oct-07 15:23 
GeneralRe: More if's? Pin
MasterSharp1-Oct-07 15:26
MasterSharp1-Oct-07 15:26 
GeneralRe: More if's? Pin
PIEBALDconsult1-Oct-07 15:28
mvePIEBALDconsult1-Oct-07 15:28 
GeneralRe: More if's? Pin
MasterSharp1-Oct-07 15:31
MasterSharp1-Oct-07 15:31 
GeneralRe: More if's? Pin
PIEBALDconsult1-Oct-07 15:46
mvePIEBALDconsult1-Oct-07 15:46 
GeneralRe: More if's? Pin
El Corazon2-Oct-07 4:45
El Corazon2-Oct-07 4:45 
GeneralRe: More if's? Pin
El Corazon2-Oct-07 5:05
El Corazon2-Oct-07 5:05 
GeneralRe: More if's? Pin
PIEBALDconsult2-Oct-07 5:29
mvePIEBALDconsult2-Oct-07 5:29 
GeneralRe: More if's? Pin
MasterSharp2-Oct-07 10:16
MasterSharp2-Oct-07 10:16 

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.