Click here to Skip to main content
15,881,248 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to make DebugView see my program Pin
S. Senthil Kumar9-Sep-05 22:27
S. Senthil Kumar9-Sep-05 22:27 
GeneralRe: How to make DebugView see my program Pin
Susan Hernandez12-Sep-05 6:06
Susan Hernandez12-Sep-05 6:06 
QuestionData Table Error Pin
Expert Coming9-Sep-05 11:48
Expert Coming9-Sep-05 11:48 
AnswerRe: Data Table Error Pin
Andy Brummer9-Sep-05 12:26
sitebuilderAndy Brummer9-Sep-05 12:26 
GeneralRe: Data Table Error Pin
Expert Coming9-Sep-05 12:41
Expert Coming9-Sep-05 12:41 
GeneralRe: Data Table Error Pin
Alomgir Miah9-Sep-05 13:37
Alomgir Miah9-Sep-05 13:37 
AnswerRe: Data Table Error Pin
Guffa9-Sep-05 13:38
Guffa9-Sep-05 13:38 
QuestionRe: HELP Pin
Expert Coming9-Sep-05 13:53
Expert Coming9-Sep-05 13:53 
	//Create the variables and arrays need only for Creating the table<br />
		string[] skills = new string[1];<br />
		skills[0] = "attack";<br />
		//skills[1] = "strength";<br />
		//skills[2] = "defence";<br />
<br />
		//The creation of the table that shows the user their stats from the database<br />
		//Dynamic Creation of the datatable<br />
<br />
		///Also sets up the new datatable<br />
		DataTable dtshowskills = new DataTable("USkills");<br />
<br />
		DataColumn dcuserSkill = new DataColumn("Skill");<br />
		dcuserSkill.DataType = System.Type.GetType("System.String");<br />
		dtshowskills.Columns.Add(dcuserSkill);<br />
		DataColumn dcuserLevel = new DataColumn("Level");<br />
		dcuserLevel.DataType = System.Type.GetType("System.Int32");<br />
		dtshowskills.Columns.Add(dcuserLevel);<br />
<br />
		foreach (string skill in skills)<br />
		{<br />
		DataRow drskill = dtshowskills.NewRow();<br />
		drskill["Skill"] = skill;<br />
		drskill["Level"] = 0;<br />
		dtshowskills.Rows.Add(drskill);<br />
		}<br />
<br />
		dgSkills.DataSource = dtshowskills;<br />
		dgSkills.DataBind();



Error is now:

System.NullReferenceException: Object reference not set to an instance of an object.
AnswerRe: HELP Pin
Alomgir Miah9-Sep-05 14:35
Alomgir Miah9-Sep-05 14:35 
GeneralRe: HELP Pin
Expert Coming9-Sep-05 15:08
Expert Coming9-Sep-05 15:08 
QuestionEXCEL CHART HELP! Pin
dgap9-Sep-05 11:06
dgap9-Sep-05 11:06 
QuestionHours Minutes Seconds Pin
PHDENG819-Sep-05 10:58
PHDENG819-Sep-05 10:58 
AnswerRe: Hours Minutes Seconds Pin
Mohamad Al Husseiny9-Sep-05 14:47
Mohamad Al Husseiny9-Sep-05 14:47 
QuestionRemoving new lines from a string Pin
Luis Alonso Ramos9-Sep-05 10:56
Luis Alonso Ramos9-Sep-05 10:56 
AnswerRe: Removing new lines from a string Pin
Guffa9-Sep-05 11:22
Guffa9-Sep-05 11:22 
GeneralRe: Removing new lines from a string Pin
Luis Alonso Ramos9-Sep-05 14:13
Luis Alonso Ramos9-Sep-05 14:13 
AnswerRe: Removing new lines from a string Pin
Kujtim Hyseni9-Sep-05 12:54
Kujtim Hyseni9-Sep-05 12:54 
AnswerRe: Removing new lines from a string Pin
Kujtim Hyseni9-Sep-05 12:58
Kujtim Hyseni9-Sep-05 12:58 
QuestionWant to display text vertically? Pin
...---...9-Sep-05 10:54
...---...9-Sep-05 10:54 
AnswerRe: Want to display text vertically? Pin
Kujtim Hyseni9-Sep-05 12:48
Kujtim Hyseni9-Sep-05 12:48 
AnswerRe: Want to display text vertically? Pin
Kujtim Hyseni9-Sep-05 12:54
Kujtim Hyseni9-Sep-05 12:54 
AnswerRe: Want to display text vertically? Pin
Mohamad Al Husseiny9-Sep-05 14:11
Mohamad Al Husseiny9-Sep-05 14:11 
GeneralRe: Want to display text vertically? Pin
Anonymous9-Sep-05 16:39
Anonymous9-Sep-05 16:39 
Questiondate format (UK) Pin
pedros739-Sep-05 9:52
pedros739-Sep-05 9:52 
AnswerRe: date format (UK) Pin
Guffa9-Sep-05 11:38
Guffa9-Sep-05 11:38 

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.