<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Load Text File to Grid</title>
	<atom:link href="http://amstudio.azman.info/2009/03/17/load-text-file-to-grid/feed/" rel="self" type="application/rss+xml" />
	<link>http://amstudio.azman.info/2009/03/17/load-text-file-to-grid/</link>
	<description>Samples for Autoplay Media Studio Users</description>
	<lastBuildDate>Tue, 10 Jan 2012 01:09:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: mamatata</title>
		<link>http://amstudio.azman.info/2009/03/17/load-text-file-to-grid/comment-page-1/#comment-114</link>
		<dc:creator>mamatata</dc:creator>
		<pubDate>Mon, 30 May 2011 18:55:44 +0000</pubDate>
		<guid isPermaLink="false">http://amstudio.azman.info/?p=227#comment-114</guid>
		<description>at first it didn&#039;t worked for me (Page1 --&gt; button1 onClick Line 17 in main chunk)
i&#039;ve modified the script a little 



bDataFile = File.DoesExist(&quot;Autoplay\\Docs\\friends.txt&quot;); -- Boolean True or False

if bDataFile == true then

	tTextFile = TextFile.ReadToTable(&quot;Autoplay\\Docs\\friends.txt&quot;)
	nCountMainTable = Table.Count(tTextFile); -- counts the number of lines in the text file

	if nCountMainTable &gt; 0 then

		for i=1, nCountMainTable do
			
			tSubTable = DelimitedStringToTable(tTextFile[i], &quot;&#124;&quot;) -- break each line into a table of data
			nCountSubTable = Table.Count(tSubTable);
			
			if nCountSubTable &gt; 0 then	
				for nColumn=0, nCountSubTable-1 do
					sColumnData = tSubTable [nColumn+1];
					Grid.InsertRow(&quot;Grid1&quot;, -1, true);
					Grid.SetCellText(&quot;Grid1&quot;, i, nColumn+1, sColumnData, true);
					Grid.AutoSizeColumn(&quot;Grid1&quot;, nColumn+1, GVS_DEFAULT, true, true);
					Grid.AutoSizeRow(&quot;Grid1&quot;, i, true, true);
				end -- for
				Grid.ExpandLastColumn(&quot;Grid1&quot;, true);
			end -- if
		end -- for
	else
		Dialog.Message(&quot;Notice&quot;, &quot;Text File has no data&quot;, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
	end -- count table

end -- if


hope that will help someone !</description>
		<content:encoded><![CDATA[<p>at first it didn&#8217;t worked for me (Page1 &#8211;&gt; button1 onClick Line 17 in main chunk)<br />
i&#8217;ve modified the script a little </p>
<p>bDataFile = File.DoesExist(&#8220;Autoplay\\Docs\\friends.txt&#8221;); &#8212; Boolean True or False</p>
<p>if bDataFile == true then</p>
<p>	tTextFile = TextFile.ReadToTable(&#8220;Autoplay\\Docs\\friends.txt&#8221;)<br />
	nCountMainTable = Table.Count(tTextFile); &#8212; counts the number of lines in the text file</p>
<p>	if nCountMainTable &gt; 0 then</p>
<p>		for i=1, nCountMainTable do</p>
<p>			tSubTable = DelimitedStringToTable(tTextFile[i], &#8220;|&#8221;) &#8212; break each line into a table of data<br />
			nCountSubTable = Table.Count(tSubTable);</p>
<p>			if nCountSubTable &gt; 0 then<br />
				for nColumn=0, nCountSubTable-1 do<br />
					sColumnData = tSubTable [nColumn+1];<br />
					Grid.InsertRow(&#8220;Grid1&#8243;, -1, true);<br />
					Grid.SetCellText(&#8220;Grid1&#8243;, i, nColumn+1, sColumnData, true);<br />
					Grid.AutoSizeColumn(&#8220;Grid1&#8243;, nColumn+1, GVS_DEFAULT, true, true);<br />
					Grid.AutoSizeRow(&#8220;Grid1&#8243;, i, true, true);<br />
				end &#8212; for<br />
				Grid.ExpandLastColumn(&#8220;Grid1&#8243;, true);<br />
			end &#8212; if<br />
		end &#8212; for<br />
	else<br />
		Dialog.Message(&#8220;Notice&#8221;, &#8220;Text File has no data&#8221;, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);<br />
	end &#8212; count table</p>
<p>end &#8212; if</p>
<p>hope that will help someone !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nsxall</title>
		<link>http://amstudio.azman.info/2009/03/17/load-text-file-to-grid/comment-page-1/#comment-58</link>
		<dc:creator>nsxall</dc:creator>
		<pubDate>Mon, 15 Feb 2010 03:14:03 +0000</pubDate>
		<guid isPermaLink="false">http://amstudio.azman.info/?p=227#comment-58</guid>
		<description>Hello! From China. My English is difficult.
With the Google translation, learning. Thank you for sharing</description>
		<content:encoded><![CDATA[<p>Hello! From China. My English is difficult.<br />
With the Google translation, learning. Thank you for sharing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mikelgaya</title>
		<link>http://amstudio.azman.info/2009/03/17/load-text-file-to-grid/comment-page-1/#comment-54</link>
		<dc:creator>mikelgaya</dc:creator>
		<pubDate>Wed, 20 Jan 2010 19:19:27 +0000</pubDate>
		<guid isPermaLink="false">http://amstudio.azman.info/?p=227#comment-54</guid>
		<description>thx for the example</description>
		<content:encoded><![CDATA[<p>thx for the example</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: halt11</title>
		<link>http://amstudio.azman.info/2009/03/17/load-text-file-to-grid/comment-page-1/#comment-28</link>
		<dc:creator>halt11</dc:creator>
		<pubDate>Wed, 26 Aug 2009 13:58:19 +0000</pubDate>
		<guid isPermaLink="false">http://amstudio.azman.info/?p=227#comment-28</guid>
		<description>hi from Argentina, 
a need to load data to a tree from a text file (
author1, book1, book1.pdf
author1, book2, book2.pdf
author1, book3, book3.pdf...
....
.....
author6, book65, book65.pdf
author6, book66, book66.pdf
....)
any help please ...
Horacio</description>
		<content:encoded><![CDATA[<p>hi from Argentina,<br />
a need to load data to a tree from a text file (<br />
author1, book1, book1.pdf<br />
author1, book2, book2.pdf<br />
author1, book3, book3.pdf&#8230;<br />
&#8230;.<br />
&#8230;..<br />
author6, book65, book65.pdf<br />
author6, book66, book66.pdf<br />
&#8230;.)<br />
any help please &#8230;<br />
Horacio</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://amstudio.azman.info/2009/03/17/load-text-file-to-grid/comment-page-1/#comment-13</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 11 Apr 2009 17:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://amstudio.azman.info/?p=227#comment-13</guid>
		<description>Hi Lukas,

Don&#039;t say sorry for double post. I appreciate it very much because you use Brazilian in one and English in another. Making this blog more interesting.

Good luck !!</description>
		<content:encoded><![CDATA[<p>Hi Lukas,</p>
<p>Don&#8217;t say sorry for double post. I appreciate it very much because you use Brazilian in one and English in another. Making this blog more interesting.</p>
<p>Good luck !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LukasNc</title>
		<link>http://amstudio.azman.info/2009/03/17/load-text-file-to-grid/comment-page-1/#comment-12</link>
		<dc:creator>LukasNc</dc:creator>
		<pubDate>Sat, 11 Apr 2009 16:18:38 +0000</pubDate>
		<guid isPermaLink="false">http://amstudio.azman.info/?p=227#comment-12</guid>
		<description>hi guy! I wanted a project here and you help me with it ... I just did the template and want you help me to put the script .. is that time trying to achieve and I can not ... but with this script that you load placed on a text file to Listbox was a little easier .. I&#039;m sorry there is very filling ...
And sorry for my English is that I am Brazilian and am using the google translator .. hehehe ...
send some email, msn, myspace or something for contact?
thanks!

...sorry for double post ...</description>
		<content:encoded><![CDATA[<p>hi guy! I wanted a project here and you help me with it &#8230; I just did the template and want you help me to put the script .. is that time trying to achieve and I can not &#8230; but with this script that you load placed on a text file to Listbox was a little easier .. I&#8217;m sorry there is very filling &#8230;<br />
And sorry for my English is that I am Brazilian and am using the google translator .. hehehe &#8230;<br />
send some email, msn, myspace or something for contact?<br />
thanks!</p>
<p>&#8230;sorry for double post &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LukasNc</title>
		<link>http://amstudio.azman.info/2009/03/17/load-text-file-to-grid/comment-page-1/#comment-11</link>
		<dc:creator>LukasNc</dc:creator>
		<pubDate>Sat, 11 Apr 2009 16:16:40 +0000</pubDate>
		<guid isPermaLink="false">http://amstudio.azman.info/?p=227#comment-11</guid>
		<description>oi cara! tenho um projeto aqui e queria que você me ajudasse com ele...eu só fiz o template e queria que você me ajudasse a colocar os scripts..faz tempo que to tentando conseguir e não consigo...mas com aquele script que você colocou sobre carregar um arquivo de texto para o Listbox ficou um pouco mais facil..desculpa aí se eu to enchendo muito...
E desculpa pelo meu inglês é que eu sou brasileiro e tou usando o google translator..hehehe...
manda algum email,msn ,myspace ou alguma coisa pra contato ?
obrigado!</description>
		<content:encoded><![CDATA[<p>oi cara! tenho um projeto aqui e queria que você me ajudasse com ele&#8230;eu só fiz o template e queria que você me ajudasse a colocar os scripts..faz tempo que to tentando conseguir e não consigo&#8230;mas com aquele script que você colocou sobre carregar um arquivo de texto para o Listbox ficou um pouco mais facil..desculpa aí se eu to enchendo muito&#8230;<br />
E desculpa pelo meu inglês é que eu sou brasileiro e tou usando o google translator..hehehe&#8230;<br />
manda algum email,msn ,myspace ou alguma coisa pra contato ?<br />
obrigado!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://amstudio.azman.info/2009/03/17/load-text-file-to-grid/comment-page-1/#comment-10</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 11 Apr 2009 15:21:32 +0000</pubDate>
		<guid isPermaLink="false">http://amstudio.azman.info/?p=227#comment-10</guid>
		<description>Hi Lukas,

The sample is up in this site. 

I have 10 more samples for ListBox. Will upload them day by day.</description>
		<content:encoded><![CDATA[<p>Hi Lukas,</p>
<p>The sample is up in this site. </p>
<p>I have 10 more samples for ListBox. Will upload them day by day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LukasNc</title>
		<link>http://amstudio.azman.info/2009/03/17/load-text-file-to-grid/comment-page-1/#comment-9</link>
		<dc:creator>LukasNc</dc:creator>
		<pubDate>Sat, 11 Apr 2009 15:06:56 +0000</pubDate>
		<guid isPermaLink="false">http://amstudio.azman.info/?p=227#comment-9</guid>
		<description>Tanks man !!!</description>
		<content:encoded><![CDATA[<p>Tanks man !!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Azmanar</title>
		<link>http://amstudio.azman.info/2009/03/17/load-text-file-to-grid/comment-page-1/#comment-8</link>
		<dc:creator>Azmanar</dc:creator>
		<pubDate>Sat, 11 Apr 2009 05:11:35 +0000</pubDate>
		<guid isPermaLink="false">http://amstudio.azman.info/?p=227#comment-8</guid>
		<description>This is very easy to do. You can download the sample at http://www.azman.info/ams . They are samples for AMS version 6 but can be opened using AMS version 7.5

Anyway, I will upload Listbox samples for AMS 7.5 tonite.</description>
		<content:encoded><![CDATA[<p>This is very easy to do. You can download the sample at <a href="http://www.azman.info/ams">http://www.azman.info/ams</a> . They are samples for AMS version 6 but can be opened using AMS version 7.5</p>
<p>Anyway, I will upload Listbox samples for AMS 7.5 tonite.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

