Click here to Skip to main content
15,913,941 members
Home / Discussions / C#
   

C#

 
QuestionUsing Methods within a Switch Case Pin
DevonDaDude11-Dec-09 22:47
DevonDaDude11-Dec-09 22:47 
AnswerRe: Using Methods within a Switch Case Pin
Abhinav S11-Dec-09 22:56
Abhinav S11-Dec-09 22:56 
GeneralRe: Using Methods within a Switch Case Pin
OriginalGriff11-Dec-09 23:03
mveOriginalGriff11-Dec-09 23:03 
GeneralRe: Using Methods within a Switch Case Pin
Abhinav S11-Dec-09 23:09
Abhinav S11-Dec-09 23:09 
GeneralRe: Using Methods within a Switch Case Pin
Saksida Bojan12-Dec-09 1:49
Saksida Bojan12-Dec-09 1:49 
GeneralRe: Using Methods within a Switch Case Pin
Richard MacCutchan12-Dec-09 3:08
mveRichard MacCutchan12-Dec-09 3:08 
GeneralRe: Using Methods within a Switch Case Pin
DevonDaDude15-Dec-09 18:20
DevonDaDude15-Dec-09 18:20 
AnswerRe: Using Methods within a Switch Case Pin
OriginalGriff11-Dec-09 23:01
mveOriginalGriff11-Dec-09 23:01 
From the error messages, I think you need at add a few statements to your method, just amove the switch:
double yQ;
double yTotal;
double zQ;
double zTotal;

This will declare the missing variables, and should get rid of the error messages.

From a stylistic point of view, have you noticed how similar your two routines getY and getZ are? Perhaps you could combine them into one, so it would be easier to maintain?

All those who believe in psycho kinesis, raise my hand.

AnswerRe: Using Methods within a Switch Case Pin
PIEBALDconsult12-Dec-09 3:59
mvePIEBALDconsult12-Dec-09 3:59 
GeneralRe: Using Methods within a Switch Case Pin
DevonDaDude12-Dec-09 15:45
DevonDaDude12-Dec-09 15:45 
QuestionUse of << and >> [modified] Pin
Joe Rozario11-Dec-09 19:16
Joe Rozario11-Dec-09 19:16 
AnswerRe: Use of << and >> Pin
Abhinav S11-Dec-09 19:56
Abhinav S11-Dec-09 19:56 
AnswerRe: Use of << and >> [modified] Pin
DaveyM6911-Dec-09 21:27
professionalDaveyM6911-Dec-09 21:27 
GeneralRe: Use of << and >> Pin
Joe Rozario11-Dec-09 21:46
Joe Rozario11-Dec-09 21:46 
GeneralRe: Use of << and >> Pin
DaveyM6911-Dec-09 22:37
professionalDaveyM6911-Dec-09 22:37 
GeneralRe: Use of << and >> Pin
Joe Rozario16-Dec-09 17:59
Joe Rozario16-Dec-09 17:59 
AnswerRe: Use of << and >> Pin
harold aptroot11-Dec-09 21:45
harold aptroot11-Dec-09 21:45 
QuestionHow to show multiple crystal reports in single Report Viewer. [modified] Pin
sher_azam11-Dec-09 18:35
sher_azam11-Dec-09 18:35 
GeneralRe: How to show multiple crystal reports in single Report Viewer. Pin
Abhinav S11-Dec-09 23:02
Abhinav S11-Dec-09 23:02 
GeneralRe: How to show multiple crystal reports in single Report Viewer. Pin
sher_azam11-Dec-09 23:13
sher_azam11-Dec-09 23:13 
QuestionCustom User Control for Multipoint SDK! Pin
Kushal Gautam11-Dec-09 17:53
Kushal Gautam11-Dec-09 17:53 
AnswerRe: Custom User Control for Multipoint SDK! Pin
krunal255-Feb-10 1:53
krunal255-Feb-10 1:53 
Questionthreading, invoke Pin
benjamin yap11-Dec-09 16:52
benjamin yap11-Dec-09 16:52 
AnswerRe: threading, invoke Pin
Saksida Bojan12-Dec-09 1:58
Saksida Bojan12-Dec-09 1:58 
QuestionSerialPort UART input buffer omits zeroes Pin
Karthik S Prakash11-Dec-09 15:18
Karthik S Prakash11-Dec-09 15:18 

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.