<?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: Setting default value from code</title><link>https://www.infopathdev.com:443/forums/thread/14361.aspx</link><pubDate>Tue, 07 Mar 2006 15:05:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14361</guid><dc:creator>pcolmer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14361.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14361</wfw:commentRss><description>I'm still having a bit of a problem, namely that of setting the default value for the FIRST row that gets created when a form is newly created.&lt;br /&gt;&lt;br /&gt;The trouble I've got is that by the time the OnLoad sub fires, the first row appears to have been created. My problem then is that I can't tell the difference between a brand new form (where I could go in and overwrite the empty value with the correct default) or a re-loaded form that just happens to not have that field set.&lt;br /&gt;&lt;br /&gt;Does that make sense?&lt;br /&gt;&lt;br /&gt;I tried moving the code into the _Startup Sub but it won't work there because I'm calling IP bits that aren't allowed at that stage.&lt;br /&gt;&lt;br /&gt;--Philip&lt;br /&gt;</description></item><item><title>Re: Setting default value from code</title><link>https://www.infopathdev.com:443/forums/thread/14360.aspx</link><pubDate>Mon, 06 Mar 2006 16:06:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14360</guid><dc:creator>pcolmer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14360.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14360</wfw:commentRss><description>Yes, that clears that up.&lt;br /&gt;&lt;br /&gt;Thanks.&lt;br /&gt;&lt;br /&gt;--Philip&lt;br /&gt;</description></item><item><title>Re: Setting default value from code</title><link>https://www.infopathdev.com:443/forums/thread/14359.aspx</link><pubDate>Mon, 06 Mar 2006 15:44:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14359</guid><dc:creator>Suresh Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14359.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14359</wfw:commentRss><description>Hi pcolmer,&lt;br /&gt;&lt;br /&gt;Try out this link.&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=568&gt;http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=568&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Hope this will help You.&lt;br /&gt;&lt;br /&gt;Thank You,</description></item><item><title>Setting default value from code</title><link>https://www.infopathdev.com:443/forums/thread/12801.aspx</link><pubDate>Mon, 06 Mar 2006 15:11:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12801</guid><dc:creator>pcolmer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12801.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12801</wfw:commentRss><description>I've got a drop-down list that is populated from a secondary data source.&lt;br /&gt;&lt;br /&gt;What I'd like to be able to do is write some code in the OnLoad sub that sets the default value for this list.&lt;br /&gt;&lt;br /&gt;Is this possible?&lt;br /&gt;&lt;br /&gt;--Philip&lt;br /&gt;</description></item></channel></rss>