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

C#

 
QuestionNotify users Pin
Morgs Morgan6-Apr-10 20:30
Morgs Morgan6-Apr-10 20:30 
AnswerRe: Notify users Pin
Greg Chelstowski6-Apr-10 21:32
Greg Chelstowski6-Apr-10 21:32 
GeneralRe: Notify users Pin
Morgs Morgan6-Apr-10 21:37
Morgs Morgan6-Apr-10 21:37 
GeneralRe: Notify users Pin
Greg Chelstowski6-Apr-10 21:42
Greg Chelstowski6-Apr-10 21:42 
Questionrecord no update Pin
mjawadkhatri6-Apr-10 20:05
mjawadkhatri6-Apr-10 20:05 
AnswerRe: record no update Pin
OriginalGriff6-Apr-10 22:25
mveOriginalGriff6-Apr-10 22:25 
AnswerRe: record no update Pin
Greg Chelstowski6-Apr-10 22:45
Greg Chelstowski6-Apr-10 22:45 
Questionplz help!!error use of unassigned local variable Pin
crisjala6-Apr-10 17:24
crisjala6-Apr-10 17:24 
hi i just want to display all empty fieldnames that are not filled up by the user
but my code has this errorer ' use of unassigned local variable 'messEmptyField' ; how can i fix this



<br />
private void btnSave_Click(object sender, EventArgs e)<br />
        {<br />
          string[] FieldName = { "Lastname", "Firstname", "Address", "Model", "Trouble Reported" };<br />
          string messEmptyField;<br />
          int i = 0;<br />
<br />
            foreach (Control ctrl in groupBox1.Controls)<br />
            {<br />
                TextBox txt = ctrl as TextBox;<br />
<br />
                if (txt.Text == string.Empty)<br />
                {<br />
                    messEmptyField += FieldName[i]; //error use of unassigned local variable 'messEmptyField'<br />
                }<br />
                i++;<br />
            }<br />
<br />
            MessageBox.Show(messEmptyField + "please filled up all");<br />
            dtDateLog.Focus();<br />
            return;<br />
        }<br />
<br />
<br />
<br />
<br />

AnswerRe: plz help!!error use of unassigned local variable Pin
Matt U.6-Apr-10 17:59
Matt U.6-Apr-10 17:59 
AnswerRe: plz help!!error use of unassigned local variable Pin
uraghu6-Apr-10 18:22
uraghu6-Apr-10 18:22 
AnswerRe: plz help!!error use of unassigned local variable Pin
Arun Jacob6-Apr-10 19:00
Arun Jacob6-Apr-10 19:00 
AnswerRe: plz help!!error use of unassigned local variable Pin
Morgs Morgan6-Apr-10 20:58
Morgs Morgan6-Apr-10 20:58 
AnswerRe: plz help!!error use of unassigned local variable Pin
OriginalGriff6-Apr-10 22:29
mveOriginalGriff6-Apr-10 22:29 
QuestionCreating a file and saving it to C Pin
Darrall6-Apr-10 14:09
Darrall6-Apr-10 14:09 
AnswerRe: Creating a file and saving it to C Pin
Super Lloyd6-Apr-10 14:32
Super Lloyd6-Apr-10 14:32 
AnswerRe: Creating a file and saving it to C Pin
harold aptroot6-Apr-10 15:03
harold aptroot6-Apr-10 15:03 
GeneralRe: Creating a file and saving it to C Pin
Darrall6-Apr-10 15:47
Darrall6-Apr-10 15:47 
GeneralRe: Creating a file and saving it to C Pin
Dan Mos6-Apr-10 16:49
Dan Mos6-Apr-10 16:49 
GeneralRe: Creating a file and saving it to C Pin
Darrall7-Apr-10 4:47
Darrall7-Apr-10 4:47 
AnswerRe: Creating a file and saving it to C Pin
PIEBALDconsult6-Apr-10 15:24
mvePIEBALDconsult6-Apr-10 15:24 
GeneralRe: Creating a file and saving it to C Pin
Darrall6-Apr-10 16:01
Darrall6-Apr-10 16:01 
GeneralRe: Creating a file and saving it to C Pin
PIEBALDconsult6-Apr-10 16:13
mvePIEBALDconsult6-Apr-10 16:13 
QuestionHow to call a COM function with arguments using IDispatch in C# Pin
JF Pomerleau6-Apr-10 11:27
JF Pomerleau6-Apr-10 11:27 
AnswerRe: How to call a COM function with arguments using IDispatch in C# Pin
chrismisztur15-Jun-10 11:01
chrismisztur15-Jun-10 11:01 
Questiontips on windows application running on a local server Pin
mrkeivan6-Apr-10 7:33
mrkeivan6-Apr-10 7: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.