Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
5
Reply
"Use of unassigned local variable" error.
Agnel Fernando
Jan 29 2016 12:49 AM
377
Reply
I am very new to programming. I am doing my first project in C#.
I have declared two variables, "row"and "col" in the initial declaration step in main function. However the error of "use of unassigned local variable col" and "use of unassigned local variable row" is encountered in a particular for loop in my code. I do not know how to rectify it. I tried declaring col and row again inside the said for loop but then when i did so, it showed me an error that it is already declared in main.
Kindly help.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
5
)
Next Recommended Forum
Named and Optional Parameters
Datagrid View Header Show as Row Wise