Click here to Skip to main content
15,927,946 members
Home / Discussions / C#
   

C#

 
GeneralRe: Application.Exit() Pin
Not Active20-Aug-04 8:23
mentorNot Active20-Aug-04 8:23 
GeneralRe: Application.Exit() Pin
Alex Leshinsky21-Aug-04 10:00
Alex Leshinsky21-Aug-04 10:00 
GeneralApplication.Exit() Pin
eggie520-Aug-04 8:08
eggie520-Aug-04 8:08 
GeneralDataGrid Scrollbars Pin
ryane20-Aug-04 8:06
ryane20-Aug-04 8:06 
QuestionCan someone help? Pin
Larkdog20-Aug-04 7:59
Larkdog20-Aug-04 7:59 
AnswerRe: Can someone help? Pin
Colin Angus Mackay20-Aug-04 8:09
Colin Angus Mackay20-Aug-04 8:09 
GeneralRe: Can someone help? Pin
Larkdog20-Aug-04 8:22
Larkdog20-Aug-04 8:22 
GeneralRe: Can someone help? Pin
Colin Angus Mackay20-Aug-04 8:40
Colin Angus Mackay20-Aug-04 8:40 
1. you have declared a variable called Comm in the Main() method, but you don't assign anything to it. You appear to try to do this in the CalculateSales() method, but this is a different scope and cannot see the Comm in the Main() method. TIP: the curly braces {} are scope delimiters if you declare something inside a set of braces then code outside them cannot see it.

2. In the CalculateSales() method you have not declared a variable called inputString. Change the line to read string inputString = Console.ReadLine(Sales);

3. See also (1) above. You need to create a variable called Comm in the CalculateSales() method. The line should read double Comm = Sales * Commision;

4. Swap the last two lines of the CalculateSales() method. After a return statement no more code can run, it is therefore unreachable.

Does this help?


"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell

Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!


GeneralRe: Can someone help? Pin
Larkdog20-Aug-04 10:06
Larkdog20-Aug-04 10:06 
GeneralRe: Can someone help? Pin
Colin Angus Mackay20-Aug-04 10:48
Colin Angus Mackay20-Aug-04 10:48 
GeneralRe: Can someone help? Pin
je_gonzalez20-Aug-04 13:19
je_gonzalez20-Aug-04 13:19 
GeneralRe: Can someone help? Pin
Colin Angus Mackay20-Aug-04 21:18
Colin Angus Mackay20-Aug-04 21:18 
AnswerRe: Can someone help? Pin
sreejith ss nair20-Aug-04 19:35
sreejith ss nair20-Aug-04 19:35 
GeneralRe: Can someone help? Pin
Colin Angus Mackay21-Aug-04 0:13
Colin Angus Mackay21-Aug-04 0:13 
GeneralRe: Can someone help? Pin
sreejith ss nair21-Aug-04 0:50
sreejith ss nair21-Aug-04 0:50 
GeneralScrollbars Pin
Gary Kirkham20-Aug-04 7:45
Gary Kirkham20-Aug-04 7:45 
GeneralRe: Scrollbars Pin
Nick Parker20-Aug-04 7:59
protectorNick Parker20-Aug-04 7:59 
GeneralRe: Scrollbars Pin
Gary Kirkham20-Aug-04 8:12
Gary Kirkham20-Aug-04 8:12 
GeneralRe: Scrollbars Pin
Werdna20-Aug-04 13:05
Werdna20-Aug-04 13:05 
Generalmfc contron in c# Pin
isamir20-Aug-04 6:44
isamir20-Aug-04 6:44 
GeneralRe: mfc contron in c# Pin
Nick Parker20-Aug-04 7:05
protectorNick Parker20-Aug-04 7:05 
GeneralRe: mfc contron in c# Pin
isamir20-Aug-04 7:30
isamir20-Aug-04 7:30 
GeneralRe: mfc contron in c# Pin
Nick Parker20-Aug-04 7:51
protectorNick Parker20-Aug-04 7:51 
Generalauthoring tool in c# Pin
hudhud20-Aug-04 6:32
hudhud20-Aug-04 6:32 
GeneralRe: authoring tool in c# Pin
Dave Kreskowiak20-Aug-04 9:36
mveDave Kreskowiak20-Aug-04 9:36 

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.