<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Defining a simple variable?</title><link>https://www.infopathdev.com:443/forums/thread/81249.aspx</link><pubDate>Thu, 02 Aug 2012 08:26:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81249</guid><dc:creator>maillme</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81249.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=81249</wfw:commentRss><description>Thank you Hilary.</description></item><item><title>Re: Defining a simple variable?</title><link>https://www.infopathdev.com:443/forums/thread/81220.aspx</link><pubDate>Wed, 01 Aug 2012 15:30:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81220</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81220.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=81220</wfw:commentRss><description>&lt;p&gt;Yes, just create a text field, give it a meaningful name, and, if you wish, set a default value for it. You can have fields in your data source that don&amp;#39;t have controls on the form - sometimes we need fields for things that the user doesn&amp;#39;t need to see or change (a status field that gets set via rules would be an example of this). Often, you can use a secondary data source (XML file included with the form in the resource files) for logic&amp;nbsp;or view&amp;nbsp;information that doesn&amp;#39;t need to be persisted - say you have a section you want to be able to show or hide via a button click, you might have a field in a secondary data source named &amp;quot;show&amp;quot; and base your conditional formatting around its value.&lt;/p&gt;</description></item><item><title>Re: Defining a simple variable?</title><link>https://www.infopathdev.com:443/forums/thread/81205.aspx</link><pubDate>Wed, 01 Aug 2012 08:31:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81205</guid><dc:creator>maillme</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81205.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=81205</wfw:commentRss><description>Hi Hilary,

thanks for your reply and apologies for my unclear question.

I guess I&amp;#39;m just wondering how to declare a simple variable that I can use in my form.


E.g. in MS Access, I would do something l;ike var MyVar = &amp;quot;Neil&amp;quot;


But I don&amp;#39;t know how to define such a variable in InfoPath - although i think, from experimenting, I just need to create a text field?

thanks,
Neil</description></item><item><title>Re: Defining a simple variable?</title><link>https://www.infopathdev.com:443/forums/thread/81165.aspx</link><pubDate>Tue, 31 Jul 2012 14:47:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81165</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81165.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=81165</wfw:commentRss><description>&lt;p&gt;So - what do you mean here? Are you writing custom code for your form and you need a variable in the code? Or do you need a form field that you can store data in? A little more information would help....&lt;/p&gt;</description></item><item><title>Defining a simple variable?</title><link>https://www.infopathdev.com:443/forums/thread/81155.aspx</link><pubDate>Tue, 31 Jul 2012 09:28:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81155</guid><dc:creator>maillme</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81155.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=81155</wfw:commentRss><description>Hi there,

I&amp;#39;ve did a search for this, and my very limited coding knowledge / experience has only made it rather confusing.

what is the easiest way to define a variable within a form? So far I have only managed to do this via a secondary data source........

thanks,
Neil</description></item></channel></rss>