S
Steve Howard
I am trying to work my way through this apparently simple walkthrough form
Microsoft:-
http://msdn.microsoft.com/library/d...con/html/vbwlkwalkthroughaccessingxmldata.asp
About half-way through it gives the following instruction:-
To add the code to create a new dataset that will receive the XML data
1.. With Form1.vb (VB users) or Form1.cs (C# users) selected in Solution
Explorer, click the View Code button in the Solution Explorer toolbar.
2.. In the declarations area, declare a new dataset named authors:
' Visual Basic
Dim dsAuthors As New DataSet("authors")
// C#
DataSet dsAuthors = new DataSet("authors");I am trying to do this as c#, and
I have been unable to find out where the 'declaration area' is supposed to
be. My web searches have not turned up any sort of defintion for this.I did
find this, which looks
helpful:-http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-csharp/39486/Declaration-AreaThe
questioner is clearly doing the same walk-through I am doing and has
encountered the same problem ... but the responses that helped him have not
helped me. I have tried to add the required code into a method declaration,
with no success. Seems like I am still not understanding what it is I should
do. I'd be grateful for any helpful comments or suggestions.TIASteve
Microsoft:-
http://msdn.microsoft.com/library/d...con/html/vbwlkwalkthroughaccessingxmldata.asp
About half-way through it gives the following instruction:-
To add the code to create a new dataset that will receive the XML data
1.. With Form1.vb (VB users) or Form1.cs (C# users) selected in Solution
Explorer, click the View Code button in the Solution Explorer toolbar.
2.. In the declarations area, declare a new dataset named authors:
' Visual Basic
Dim dsAuthors As New DataSet("authors")
// C#
DataSet dsAuthors = new DataSet("authors");I am trying to do this as c#, and
I have been unable to find out where the 'declaration area' is supposed to
be. My web searches have not turned up any sort of defintion for this.I did
find this, which looks
helpful:-http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-csharp/39486/Declaration-AreaThe
questioner is clearly doing the same walk-through I am doing and has
encountered the same problem ... but the responses that helped him have not
helped me. I have tried to add the required code into a method declaration,
with no success. Seems like I am still not understanding what it is I should
do. I'd be grateful for any helpful comments or suggestions.TIASteve