<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Add values in array</title><link>https://www.infopathdev.com:443/forums/thread/53895.aspx</link><pubDate>Tue, 20 Apr 2010 13:03:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53895</guid><dc:creator>alexia_net</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53895.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=53895</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thank you. It works now. Thx a lot.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Add values in array</title><link>https://www.infopathdev.com:443/forums/thread/53891.aspx</link><pubDate>Tue, 20 Apr 2010 11:55:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53891</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53891.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=53891</wfw:commentRss><description>well Arraylist belongs to &lt;font size="2"&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;System.Collections.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;ArrayList&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;so you will have to include &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;using&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt; System.Collections; &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;statement in the references&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Add values in array</title><link>https://www.infopathdev.com:443/forums/thread/53889.aspx</link><pubDate>Tue, 20 Apr 2010 10:16:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53889</guid><dc:creator>alexia_net</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53889.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=53889</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi. Thank you but unfortunatelly infopath 2007 does not recognize &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;new &lt;b&gt;ArrayList&lt;/b&gt;();&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;</description></item><item><title>Re: Add values in array</title><link>https://www.infopathdev.com:443/forums/thread/53843.aspx</link><pubDate>Mon, 19 Apr 2010 11:08:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53843</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53843.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=53843</wfw:commentRss><description>&lt;p&gt;you can use &lt;a href="http://dotnetperls.com/arraylist"&gt;arraylists&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Add values in array</title><link>https://www.infopathdev.com:443/forums/thread/53838.aspx</link><pubDate>Mon, 19 Apr 2010 09:17:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53838</guid><dc:creator>alexia_net</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53838.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=53838</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;However its strange that i cannot make it dynamic, to increment by itself each time i add a new value. If there is a way I would appreciate a sugestion. Thank you!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Add values in array</title><link>https://www.infopathdev.com:443/forums/thread/53837.aspx</link><pubDate>Mon, 19 Apr 2010 08:59:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53837</guid><dc:creator>alexia_net</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53837.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=53837</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi. Thank you. Yes, its like this, but when defining the array i have to do it like this:&lt;/p&gt;&lt;p&gt;Public m_arrayMessages(2) As String&lt;/p&gt;&lt;p&gt;Do not ask me why, i guess that this is the way it is in Visual Studio Tools for Applications. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Add values in array</title><link>https://www.infopathdev.com:443/forums/thread/53836.aspx</link><pubDate>Mon, 19 Apr 2010 08:42:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53836</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53836.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=53836</wfw:commentRss><description>&lt;p&gt;string [] arr = new string[4];&lt;/p&gt;
&lt;p&gt;for(int i =0;i&amp;lt; 4;i++)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;arr[i]=&amp;quot;your value goes here&amp;quot;;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;</description></item><item><title>Re: Add values in array</title><link>https://www.infopathdev.com:443/forums/thread/53833.aspx</link><pubDate>Mon, 19 Apr 2010 08:28:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53833</guid><dc:creator>alexia_net</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53833.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=53833</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi. thank you for your answer. What I want to do is to use a FOR instruction and do something like&lt;/p&gt;&lt;p&gt;For i = 1 to 2&lt;/p&gt;&lt;p&gt;str(i) = myvalue&lt;/p&gt;&lt;p&gt;&amp;nbsp;end for&lt;/p&gt;&lt;p&gt;Remember, I am using Microsoft visula studio tools for applications C# from InfoPath 2007. I want to have in a vector more values and then I will extract them and save them in the database. So how do i declare it in the right way?&lt;/p&gt;&lt;p&gt;Thank you!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Add values in array</title><link>https://www.infopathdev.com:443/forums/thread/53772.aspx</link><pubDate>Fri, 16 Apr 2010 15:01:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53772</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53772.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=53772</wfw:commentRss><description>&lt;p&gt;string []str = new string{&amp;quot;smth&amp;quot;,&amp;quot;value2&amp;quot;,&amp;quot;value3&amp;quot;};&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Add values in array</title><link>https://www.infopathdev.com:443/forums/thread/53770.aspx</link><pubDate>Fri, 16 Apr 2010 13:51:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53770</guid><dc:creator>alexia_net</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53770.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=53770</wfw:commentRss><description>&lt;p&gt;Hi. I have defined an array in C# - InforPath 2007&lt;/p&gt;&lt;p&gt;public m_array as string()&lt;/p&gt;&lt;p&gt;how do i assign a value into it?&lt;/p&gt;&lt;p&gt;If I try to do it like this&lt;/p&gt;&lt;p&gt;m_array(0) = &amp;quot;smth&amp;quot;&lt;/p&gt;&lt;p&gt;i get an error saying&lt;/p&gt;&lt;p&gt;Object reference not set to an instance of an object. How do i assign a value into an array? Thank you!&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>