Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
Questionauto-method [modified] Pin
MasterSharp24-Oct-07 10:55
MasterSharp24-Oct-07 10:55 
AnswerRe: auto-method Pin
il_masacratore24-Oct-07 11:12
il_masacratore24-Oct-07 11:12 
GeneralRe: auto-method Pin
MasterSharp24-Oct-07 11:22
MasterSharp24-Oct-07 11:22 
GeneralRe: auto-method Pin
Christian Graus24-Oct-07 12:28
protectorChristian Graus24-Oct-07 12:28 
QuestionModular Program Pin
murtle324-Oct-07 9:38
murtle324-Oct-07 9:38 
QuestionRe: Modular Program Pin
TJoe24-Oct-07 9:48
TJoe24-Oct-07 9:48 
AnswerRe: Modular Program Pin
murtle324-Oct-07 19:06
murtle324-Oct-07 19:06 
GeneralRe: Modular Program Pin
PandemoniumPasha24-Oct-07 19:30
PandemoniumPasha24-Oct-07 19:30 
in the above code you should get a ton of errors and not just invalid namespace.
you have defined variables like hourWorked, hourRate etc in the function "GetData()" and try to access it from other functions. those variables will have scope in only GetData() function and hence are not accessible in other functions.

so, either you can pass the variables as arguments to the functions or do not make your functions static.

hope this helps.

regards
Smile | :)

GeneralRe: Modular Program Pin
murtle324-Oct-07 19:38
murtle324-Oct-07 19:38 
AnswerRe: Modular Program Pin
PandemoniumPasha24-Oct-07 19:51
PandemoniumPasha24-Oct-07 19:51 
GeneralRe: Modular Program Pin
murtle325-Oct-07 4:02
murtle325-Oct-07 4:02 
AnswerRe: Modular Program Pin
Christian Graus24-Oct-07 12:52
protectorChristian Graus24-Oct-07 12:52 
QuestionHow to remove part of the text in RichTextBox Pin
Ermak8624-Oct-07 9:05
Ermak8624-Oct-07 9:05 
AnswerRe: How to remove part of the text in RichTextBox Pin
TJoe24-Oct-07 9:27
TJoe24-Oct-07 9:27 
GeneralRe: How to remove part of the text in RichTextBox Pin
Ermak8624-Oct-07 10:02
Ermak8624-Oct-07 10:02 
AnswerRe: Open Default Defragmenter Pin
TJoe24-Oct-07 9:00
TJoe24-Oct-07 9:00 
GeneralRe: Open Default Defragmenter Pin
andyr200524-Oct-07 9:08
andyr200524-Oct-07 9:08 
Questionvariable out of scope Pin
Payrok24-Oct-07 8:07
Payrok24-Oct-07 8:07 
AnswerRe: variable out of scope Pin
TJoe24-Oct-07 8:16
TJoe24-Oct-07 8:16 
AnswerRe: variable out of scope Pin
Guffa24-Oct-07 8:59
Guffa24-Oct-07 8:59 
AnswerRe: variable out of scope Pin
Pete O'Hanlon24-Oct-07 9:05
mvePete O'Hanlon24-Oct-07 9:05 
GeneralRe: variable out of scope Pin
Payrok24-Oct-07 9:09
Payrok24-Oct-07 9:09 
GeneralRe: variable out of scope Pin
TJoe24-Oct-07 9:10
TJoe24-Oct-07 9:10 
GeneralRe: variable out of scope Pin
Pete O'Hanlon24-Oct-07 9:16
mvePete O'Hanlon24-Oct-07 9:16 
QuestionOpen Default Defragmenter Pin
andyr200524-Oct-07 7:47
andyr200524-Oct-07 7:47 

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.