<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Comment Feed for Channel 9 - for Iterations - Day 1 - Part 14</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations/RSS"></atom:link>
	<image>
		<url>http://ecn.channel9.msdn.com/o9/ch9/2a23/1e14d67f-de4c-47a6-bc20-9e10015e2a23/day01part14_100_ch9.jpg</url>
		<title>Channel 9 - for Iterations - Day 1 - Part 14</title>
		<link></link>
	</image>
	<description> When working with data or objects (such as controls) in applications, you often need to loop or, rather, iterate through groups. This video explains how to work with a simple “for iteration” statement. Since we&#39;ll be working with lots of different groups (such as collections of objects and collections of data) we’ll need to understand a little about how to navigate through the collection, or list, of those items. Download the source code in c# Download the source code in VB.Net </description>
	<link></link>
	<language>en</language>
	<pubDate>Thu, 23 May 2013 11:17:20 GMT</pubDate>
	<lastBuildDate>Thu, 23 May 2013 11:17:20 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<item>
		<title>Re: for Iterations - Day 1 - Part 14</title>
		<description>
			<![CDATA[Hi Bob, great series of videos. just finished day 1 and coming back to this video because....<br />i understand the theory of what the for loop is doing etc just fine. but this line i get confused...<br />message = message + i.ToString() + System.Environment.NewLine;<br />when i go through loop in my head i come to the conclusion you shouldnt need the "message +" part.. as in effect "message" has no value/string. yet when you remove it only "9" is displayed. also if you put "message = i.ToString() + message + System.Environment.NewLine;" &nbsp;the NewLine is being initiated.<br />&nbsp;<br />if you could clear this up for me i would appreciate it! cheers&nbsp;<p>posted by james</p>]]>
		</description>
		<link>http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634263159770000000</link>
		<pubDate>Thu, 25 Nov 2010 21:06:17 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634263159770000000</guid>
		<dc:creator>james</dc:creator>
	</item>
	<item>
		<title>Re: for Iterations - Day 1 - Part 14</title>
		<description>
			<![CDATA[@james: sorry the .NewLine is NOT being initiated....<p>posted by james</p>]]>
		</description>
		<link>http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634263243240000000</link>
		<pubDate>Thu, 25 Nov 2010 23:25:24 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634263243240000000</guid>
		<dc:creator>james</dc:creator>
	</item>
	<item>
		<title>Re: for Iterations - Day 1 - Part 14</title>
		<description>
			<![CDATA[ <p>@<a href="/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634263243240000000">james</a>: System.Environment.NewLine doesn't have to be initiated.</p><p>He did create message and on every loop, he is recreating message with what was there, the loop counter, then a new line character.&nbsp; Without the new line character there, it would look like this:<br>56789</p><p>instead of:<br>5<br>6<br>7<br>8<br>9</p><p>posted by Clint</p>]]>
		</description>
		<link>http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634269637020000000</link>
		<pubDate>Fri, 03 Dec 2010 09:01:42 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634269637020000000</guid>
		<dc:creator>Clint</dc:creator>
	</item>
	<item>
		<title>Re: for Iterations - Day 1 - Part 14</title>
		<description>
			<![CDATA[@james:&nbsp; you could also use message&nbsp;+= &nbsp;i.ToString() + System.Environment.NewLine;<br />This is the same as message = message + i.ToString() + System.Environment.NewLine;<p>posted by Kristian</p>]]>
		</description>
		<link>http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634270751430000000</link>
		<pubDate>Sat, 04 Dec 2010 15:59:03 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634270751430000000</guid>
		<dc:creator>Kristian</dc:creator>
	</item>
	<item>
		<title>Re: for Iterations - Day 1 - Part 14</title>
		<description>
			<![CDATA[Yes I have to say overall the concept was clear but the lines of code were very unclear to me... More clarification would be better... for example<br />when the variable is set to this string userValue = myTextBox.Text = "2";<br />myResultReturned.Text = "You have won a million dollars";<br />LOL, I know this is probably wrong but the point I am asking/illustrating is that why does the first line take a value in and why does the second line read a value out... how does the code know the difference of what it is displaying / running onto the screen versus taking in???<p>posted by Christian</p>]]>
		</description>
		<link>http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634311856980000000</link>
		<pubDate>Fri, 21 Jan 2011 05:48:18 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634311856980000000</guid>
		<dc:creator>Christian</dc:creator>
	</item>
	<item>
		<title>Re: for Iterations - Day 1 - Part 14</title>
		<description>
			<![CDATA[ <p>I have no idea what I am doing wrong. This is my code:&nbsp; </p><p>private void myButton_Click(object sender, RoutedEventArgs e)</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{</p><p>string message = &quot;&quot;;</p><p>for (int i = 0; 1 &lt; 10; i&#43;&#43;)</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <br></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; message = message &#43; i.ToString() &#43; System.</p><p></p><p>Environment.NewLine;</p><p></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; myTextBlock.Text = message;<br>and for some reason it has a green line under myTextBlock and said there is unreachable code detected. What am I doing wrong?</p><p></p><p></p><p>posted by magicwin31</p>]]>
		</description>
		<link>http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634334089440000000</link>
		<pubDate>Tue, 15 Feb 2011 23:22:24 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634334089440000000</guid>
		<dc:creator>magicwin31</dc:creator>
	</item>
	<item>
		<title>Re: for Iterations - Day 1 - Part 14</title>
		<description>
			<![CDATA[@magicwin31: try to change from this  for (int i = 0; 1 < 10; i++) to this for (int i = 0; i < 10; i++)<p>posted by shamelesstoad</p>]]>
		</description>
		<link>http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634339454140000000</link>
		<pubDate>Tue, 22 Feb 2011 04:23:34 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634339454140000000</guid>
		<dc:creator>shamelesstoad</dc:creator>
	</item>
	<item>
		<title>Re: for Iterations - Day 1 - Part 14</title>
		<description>
			<![CDATA[ <p>@shamelesstoad that worked, thank you so much.</p><p>posted by magicwin31</p>]]>
		</description>
		<link>http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634348138450000000</link>
		<pubDate>Fri, 04 Mar 2011 05:37:25 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634348138450000000</guid>
		<dc:creator>magicwin31</dc:creator>
	</item>
	<item>
		<title>Re: for Iterations - Day 1 - Part 14</title>
		<description>
			<![CDATA[@Christian, thats because the first line is used with a textBox, wich takes values "in", and the second line is used with a textBlock, wich takes values "out".<p>posted by Jorge</p>]]>
		</description>
		<link>http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634348721550000000</link>
		<pubDate>Fri, 04 Mar 2011 21:49:15 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634348721550000000</guid>
		<dc:creator>Jorge</dc:creator>
	</item>
	<item>
		<title>Re: for Iterations - Day 1 - Part 14</title>
		<description>
			<![CDATA[There's something unclear to me,<br />Why does the next code just writes down "9"? I mean, shouldnt it start with "1", print it, goes for the "2", prints it and so? I tried this code as i've done it several times in Java and it does print the whole secuence instead of just "9", so why isnt this working here?<br />privatevoid myButton_Click(object sender, RoutedEventArgs e)<br />        {<br />for (int i = 0; i < 10; i++)<br />            {<br />                mytxtBlock.Text = i.ToString() + System.Environment.NewLine;<br />            }<br />        }<br /> <br /> <p>posted by Jorge</p>]]>
		</description>
		<link>http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634348730510000000</link>
		<pubDate>Fri, 04 Mar 2011 22:04:11 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634348730510000000</guid>
		<dc:creator>Jorge</dc:creator>
	</item>
	<item>
		<title>Re: for Iterations - Day 1 - Part 14</title>
		<description>
			<![CDATA[EDIT: Actually it should start with "0" :P<p>posted by Jorge</p>]]>
		</description>
		<link>http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634348731620000000</link>
		<pubDate>Fri, 04 Mar 2011 22:06:02 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634348731620000000</guid>
		<dc:creator>Jorge</dc:creator>
	</item>
	<item>
		<title>Re: for Iterations - Day 1 - Part 14</title>
		<description>
			<![CDATA[These videos are helping me not only learning the WP7 development process, but C# at the same time!<p>posted by Griffin Wiebel</p>]]>
		</description>
		<link>http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634371291860000000</link>
		<pubDate>Thu, 31 Mar 2011 00:46:26 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/for-Iterations#c634371291860000000</guid>
		<dc:creator>Griffin Wiebel</dc:creator>
	</item>
</channel>
</rss>