Click here to Skip to main content
16,012,166 members
Home / Discussions / C#
   

C#

 
GeneralRe: XInput Pin
Pete O'Hanlon11-Nov-07 22:20
mvePete O'Hanlon11-Nov-07 22:20 
Question2 Keys Pin
MasterSharp11-Nov-07 8:07
MasterSharp11-Nov-07 8:07 
AnswerRe: 2 Keys Pin
Luc Pattyn11-Nov-07 9:34
sitebuilderLuc Pattyn11-Nov-07 9:34 
GeneralRe: 2 Keys Pin
MasterSharp11-Nov-07 9:49
MasterSharp11-Nov-07 9:49 
GeneralRe: 2 Keys Pin
MasterSharp11-Nov-07 9:51
MasterSharp11-Nov-07 9:51 
GeneralRe: 2 Keys Pin
Luc Pattyn11-Nov-07 9:56
sitebuilderLuc Pattyn11-Nov-07 9:56 
GeneralRe: 2 Keys Pin
MasterSharp11-Nov-07 9:59
MasterSharp11-Nov-07 9:59 
GeneralRe: 2 Keys Pin
Luc Pattyn11-Nov-07 10:32
sitebuilderLuc Pattyn11-Nov-07 10:32 
Hi,

switch(numeric expression) {
    case constant_value_1: statement1; break;
    case constant_value_2: statement2; break;
    case constant_value_3: statement3; break;
...
    default: statement_default; break;
}


switch expects a variable or expression of integer numeric type, char or string;
each case just expects a single constant of the same type (no "x=").

This is something you should find yourself by reading an introductory book on the
language you use, as well as by reading the available documentation (MSDN).

Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google


AnswerRe: 2 Keys Pin
Christian Graus11-Nov-07 10:14
protectorChristian Graus11-Nov-07 10:14 
AnswerRe: 2 Keys Pin
Anthony Mushrow11-Nov-07 10:30
professionalAnthony Mushrow11-Nov-07 10:30 
GeneralRe: 2 Keys Pin
MasterSharp11-Nov-07 10:34
MasterSharp11-Nov-07 10:34 
GeneralRe: 2 Keys Pin
MasterSharp11-Nov-07 11:09
MasterSharp11-Nov-07 11:09 
Questionstatic constructors & late binding with reflection Pin
gilaz1111-Nov-07 6:05
gilaz1111-Nov-07 6:05 
AnswerRe: static constructors & late binding with reflection Pin
Justin Perez11-Nov-07 7:07
Justin Perez11-Nov-07 7:07 
QuestionCall function of Form1 from Form2? Pin
I'm a beginner11-Nov-07 3:57
I'm a beginner11-Nov-07 3:57 
AnswerRe: Call function of Form1 from Form2? Pin
Giorgi Dalakishvili11-Nov-07 4:06
mentorGiorgi Dalakishvili11-Nov-07 4:06 
GeneralRe: Call function of Form1 from Form2? Pin
I'm a beginner11-Nov-07 4:15
I'm a beginner11-Nov-07 4:15 
GeneralRe: Call function of Form1 from Form2? Pin
Giorgi Dalakishvili11-Nov-07 4:24
mentorGiorgi Dalakishvili11-Nov-07 4:24 
GeneralRe: Call function of Form1 from Form2? Pin
I'm a beginner11-Nov-07 4:32
I'm a beginner11-Nov-07 4:32 
GeneralRe: Call function of Form1 from Form2? Pin
Giorgi Dalakishvili11-Nov-07 5:01
mentorGiorgi Dalakishvili11-Nov-07 5:01 
GeneralRe: Call function of Form1 from Form2? Pin
I'm a beginner11-Nov-07 5:11
I'm a beginner11-Nov-07 5:11 
AnswerRe: Call function of Form1 from Form2? Pin
Colin Angus Mackay11-Nov-07 4:51
Colin Angus Mackay11-Nov-07 4:51 
GeneralRe: Call function of Form1 from Form2? Pin
I'm a beginner11-Nov-07 5:02
I'm a beginner11-Nov-07 5:02 
GeneralRe: Call function of Form1 from Form2? Pin
Colin Angus Mackay11-Nov-07 5:11
Colin Angus Mackay11-Nov-07 5:11 
GeneralRe: Call function of Form1 from Form2? Pin
I'm a beginner11-Nov-07 5:33
I'm a beginner11-Nov-07 5:33 

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.