Click here to Skip to main content
15,917,645 members
Home / Discussions / C#
   

C#

 
QuestionHow to get file path from save file dialogue box Pin
prakash_21029-Nov-06 19:27
prakash_21029-Nov-06 19:27 
AnswerRe: How to get file path from save file dialogue box Pin
Eduard Keilholz29-Nov-06 20:59
Eduard Keilholz29-Nov-06 20:59 
QuestionDirectoryInfo.GetFiles question Pin
coolestCoder29-Nov-06 18:46
coolestCoder29-Nov-06 18:46 
AnswerRe: DirectoryInfo.GetFiles question Pin
Scott Dorman29-Nov-06 18:51
professionalScott Dorman29-Nov-06 18:51 
QuestionNeed Help--Required permissions cannot be acquired. Pin
Jay Khanpara29-Nov-06 18:38
Jay Khanpara29-Nov-06 18:38 
QuestionChecking File in use before copy Pin
coolestCoder29-Nov-06 18:34
coolestCoder29-Nov-06 18:34 
AnswerRe: Checking File in use before copy Pin
Martin#29-Nov-06 20:52
Martin#29-Nov-06 20:52 
QuestionLocal Variable and "global" with same name Pin
Dwayner7929-Nov-06 16:54
Dwayner7929-Nov-06 16:54 
I am working with two functions that format a byte array in preparation to send down the serial port (which .Net 2.0 is a but rough) and strip the formatting from the bytes recieved. These work fairly well, but in this case I had to make a few variables class wide because of the way .Net serial port works. These two functions have similar form, and as such, they use some common variable names. The one in particular was "checksum". Long story short, I move one of the function's "checksum" to a class-wide global variable and left the other in the function. I.E:

<code>
namespace Coda_Verifier_Pro
{
public partial class MainForm : Form
{
byte checksum;

private void myFunction1()
{
checksum = 0x00; //do stuff with checksum
}

private void myFunction2()
{
byte checksum;
checksum = 0x00; //do stuff with checksum
}
}
}
</code>

Shouldn't the complier catch this? Am I missing something obvious? This is why I hate using Global variables.


*****************
"We need to apply 21st-century information technology to the health care field. We need to have our medical records put on the I.T." —GW
AnswerRe: Local Variable and "global" with same name Pin
Scott Dorman29-Nov-06 17:00
professionalScott Dorman29-Nov-06 17:00 
GeneralRe: Local Variable and "global" with same name Pin
Dwayner7929-Nov-06 18:19
Dwayner7929-Nov-06 18:19 
GeneralRe: Local Variable and "global" with same name Pin
Scott Dorman29-Nov-06 18:32
professionalScott Dorman29-Nov-06 18:32 
AnswerRe: Local Variable and "global" with same name Pin
Guffa29-Nov-06 22:02
Guffa29-Nov-06 22:02 
AnswerRe: Local Variable and "global" with same name Pin
ednrgc30-Nov-06 6:31
ednrgc30-Nov-06 6:31 
Questioninsert "-" in between words in a sentence Pin
Vipin Venugopal29-Nov-06 16:50
Vipin Venugopal29-Nov-06 16:50 
AnswerRe: insert "-" in between words in a sentence Pin
mav.northwind29-Nov-06 18:48
mav.northwind29-Nov-06 18:48 
QuestionProperty Binding Question Pin
rflach529-Nov-06 14:33
rflach529-Nov-06 14:33 
QuestionModal dialog issues... Pin
Super Lloyd29-Nov-06 14:32
Super Lloyd29-Nov-06 14:32 
AnswerRe: Modal dialog issues... Pin
Christian Graus29-Nov-06 15:14
protectorChristian Graus29-Nov-06 15:14 
GeneralRe: Modal dialog issues... Pin
Super Lloyd29-Nov-06 16:48
Super Lloyd29-Nov-06 16:48 
AnswerRe: Modal dialog issues... Pin
V.29-Nov-06 21:23
professionalV.29-Nov-06 21:23 
Question&lt;generic&gt; return type? Pin
michal.kreslik29-Nov-06 14:14
michal.kreslik29-Nov-06 14:14 
AnswerRe: &amp;lt;generic&amp;gt; return type? Pin
Not Active29-Nov-06 14:20
mentorNot Active29-Nov-06 14:20 
GeneralRe: &amp;lt;generic&amp;gt; return type? Pin
michal.kreslik29-Nov-06 23:33
michal.kreslik29-Nov-06 23:33 
QuestionISS algorithm Implementation Pin
fcis200729-Nov-06 11:39
fcis200729-Nov-06 11:39 
AnswerRe: ISS algorithm Implementation Pin
Dave Kreskowiak29-Nov-06 12:22
mveDave Kreskowiak29-Nov-06 12:22 

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.