<?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: Simple VB Code and All About Arrays</title>
	<atom:link href="http://teamtutorials.com/programming-tutorials/simple-vb-tutorials-%e2%80%93-all-about-arrays/feed" rel="self" type="application/rss+xml" />
	<link>http://teamtutorials.com/programming-tutorials/simple-vb-tutorials-%e2%80%93-all-about-arrays</link>
	<description></description>
	<lastBuildDate>Thu, 18 Mar 2010 08:04:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mike Maguire</title>
		<link>http://teamtutorials.com/programming-tutorials/simple-vb-tutorials-%e2%80%93-all-about-arrays/comment-page-1#comment-4238</link>
		<dc:creator>Mike Maguire</dc:creator>
		<pubDate>Sun, 03 Jan 2010 18:37:27 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/programming-tutorials/simple-vb-tutorials-%e2%80%93-all-about-arrays#comment-4238</guid>
		<description>Rob,
  Is there a reason you want to load them into separate arrays rather than just managing the list you already have? One of the benefits to arrayLists over arrays are the expandability. They will re size themselves based off information being changed within the collection. 

You can use the Add() method to add information to the list:
arraylist.add(&quot;somevalue&quot;)

and you can use the Remove() or RemoveAt() methods to remove a values from the list. This will remove the values for a given key and the next value added will get assigned that key.
arraylist.Remove(&quot;SomeValue&quot;)

arraylist.RemoveAt(1)

If this does not help you, then please let me know as I am not totally sure I see what your trying to achieve. Thanks for reading our site and I hope this helps.</description>
		<content:encoded><![CDATA[<p>Rob,<br />
  Is there a reason you want to load them into separate arrays rather than just managing the list you already have? One of the benefits to arrayLists over arrays are the expandability. They will re size themselves based off information being changed within the collection. </p>
<p>You can use the Add() method to add information to the list:<br />
arraylist.add(&#8220;somevalue&#8221;)</p>
<p>and you can use the Remove() or RemoveAt() methods to remove a values from the list. This will remove the values for a given key and the next value added will get assigned that key.<br />
arraylist.Remove(&#8220;SomeValue&#8221;)</p>
<p>arraylist.RemoveAt(1)</p>
<p>If this does not help you, then please let me know as I am not totally sure I see what your trying to achieve. Thanks for reading our site and I hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://teamtutorials.com/programming-tutorials/simple-vb-tutorials-%e2%80%93-all-about-arrays/comment-page-1#comment-4237</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Sun, 03 Jan 2010 17:47:13 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/programming-tutorials/simple-vb-tutorials-%e2%80%93-all-about-arrays#comment-4237</guid>
		<description>Hello,
I am making a project (Waiting List) where I am using arraylist(2) therefor I am entering 3 pieces of information.

The information in the arraylist is then sent to a listbox

 lstWaiting.Items.Add(String.Format(&quot;{0} To {1} = {2:c}&quot;, _
                                            arraylist(0), _
                                            arraylist(1), _
                                            arraylist(2)))

Then when the item in the listbox is double clicked it removes the information from the listbox and sends it to textboxes

        Do While lstWaiting.SelectedIndex &gt; -1
            lstWaiting.SelectedItem = lstWaiting.Items.Item(lstWaiting.Items.Count - 1)
            lstWaiting.Items.RemoveAt(lstWaiting.SelectedIndex)
        Loop

        txtArrayPickUp.Text = arraylist(0)
        WaitPickUp = txtArrayPickUp.Text
        txtArrayDropOff.Text = arraylist(1)
        WaitDropOff = txtArrayDropOff.Text
        txtArrayPrice.Text = arraylist(2)
        WaitPrice = txtArrayPrice.Text


Now I could empty and re use the array to add 3 more pieces of information however, what if I have to keep that first array loaded and left on the list but had to add more information into more separate arrays and once the first arraylist becomes used (deleted from listbox and entered into textbox) I can then reuse it. How could I code that? The redim would be useless because once I delete the item from the listbox the array will be deleted and reused. Can anyone help me out?</description>
		<content:encoded><![CDATA[<p>Hello,<br />
I am making a project (Waiting List) where I am using arraylist(2) therefor I am entering 3 pieces of information.</p>
<p>The information in the arraylist is then sent to a listbox</p>
<p> lstWaiting.Items.Add(String.Format(&#8220;{0} To {1} = {2:c}&#8221;, _<br />
                                            arraylist(0), _<br />
                                            arraylist(1), _<br />
                                            arraylist(2)))</p>
<p>Then when the item in the listbox is double clicked it removes the information from the listbox and sends it to textboxes</p>
<p>        Do While lstWaiting.SelectedIndex &gt; -1<br />
            lstWaiting.SelectedItem = lstWaiting.Items.Item(lstWaiting.Items.Count &#8211; 1)<br />
            lstWaiting.Items.RemoveAt(lstWaiting.SelectedIndex)<br />
        Loop</p>
<p>        txtArrayPickUp.Text = arraylist(0)<br />
        WaitPickUp = txtArrayPickUp.Text<br />
        txtArrayDropOff.Text = arraylist(1)<br />
        WaitDropOff = txtArrayDropOff.Text<br />
        txtArrayPrice.Text = arraylist(2)<br />
        WaitPrice = txtArrayPrice.Text</p>
<p>Now I could empty and re use the array to add 3 more pieces of information however, what if I have to keep that first array loaded and left on the list but had to add more information into more separate arrays and once the first arraylist becomes used (deleted from listbox and entered into textbox) I can then reuse it. How could I code that? The redim would be useless because once I delete the item from the listbox the array will be deleted and reused. Can anyone help me out?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prabhanjan Bharti</title>
		<link>http://teamtutorials.com/programming-tutorials/simple-vb-tutorials-%e2%80%93-all-about-arrays/comment-page-1#comment-3507</link>
		<dc:creator>Prabhanjan Bharti</dc:creator>
		<pubDate>Fri, 23 Oct 2009 03:57:47 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/programming-tutorials/simple-vb-tutorials-%e2%80%93-all-about-arrays#comment-3507</guid>
		<description>Hi
I have 2 question for answer. Plz Help me 

Q.1:- Give an array of numbers. Find out that number which occurs only once in the array.
Q.2:- Give 2 arrays A and B. Array &quot;A&quot; contains all the element of &quot;B&quot;. But one more element extra. Find out the extra element.

Thank U</description>
		<content:encoded><![CDATA[<p>Hi<br />
I have 2 question for answer. Plz Help me </p>
<p>Q.1:- Give an array of numbers. Find out that number which occurs only once in the array.<br />
Q.2:- Give 2 arrays A and B. Array &#8220;A&#8221; contains all the element of &#8220;B&#8221;. But one more element extra. Find out the extra element.</p>
<p>Thank U</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wilson Ochuko</title>
		<link>http://teamtutorials.com/programming-tutorials/simple-vb-tutorials-%e2%80%93-all-about-arrays/comment-page-1#comment-3425</link>
		<dc:creator>Wilson Ochuko</dc:creator>
		<pubDate>Fri, 02 Oct 2009 16:21:25 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/programming-tutorials/simple-vb-tutorials-%e2%80%93-all-about-arrays#comment-3425</guid>
		<description>I need a complete materia  on how to work with array programs in VB 6.0 to enablimg</description>
		<content:encoded><![CDATA[<p>I need a complete materia  on how to work with array programs in VB 6.0 to enablimg</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: M.Gold</title>
		<link>http://teamtutorials.com/programming-tutorials/simple-vb-tutorials-%e2%80%93-all-about-arrays/comment-page-1#comment-2315</link>
		<dc:creator>M.Gold</dc:creator>
		<pubDate>Fri, 12 Dec 2008 08:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/programming-tutorials/simple-vb-tutorials-%e2%80%93-all-about-arrays#comment-2315</guid>
		<description>Hi,

Please send me the Next , Previous , First command buttons codings in vb6.0 with Microsoft Access.and using the Data Report &amp; Data Environment.
need for project.Please send to my E-Mail Address.



Thank You.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Please send me the Next , Previous , First command buttons codings in vb6.0 with Microsoft Access.and using the Data Report &amp; Data Environment.<br />
need for project.Please send to my E-Mail Address.</p>
<p>Thank You.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
