<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Ultra New to Infopath - Calculated Angle as decimal need to use Absolute value - and others.</title><link>https://www.infopathdev.com:443/forums/thread/77077.aspx</link><pubDate>Tue, 03 Apr 2012 02:51:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77077</guid><dc:creator>wapfunz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77077.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77077</wfw:commentRss><description>&lt;p&gt;Hello Jimmy,&lt;/p&gt;&lt;p&gt;Thank you for your valued response.&lt;/p&gt;&lt;p&gt;Using Infopath 2010.&lt;/p&gt;&lt;p&gt;The idea is to publish the form to a sharepoint portal in the future which will be sharepoint 2010.&lt;/p&gt;&lt;p&gt;So VBA out VB.net in mmmmmmmmmmmmmmmmmmmm - I do not want to try code for this as most code I have writen has been on a need to do or know basis, and coding etc is not my profession or vocation.&lt;/p&gt;&lt;p&gt;Keeping things as simple as possible using the inbuilt features is where I wish to be.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Best Regards&lt;/p&gt;&lt;p&gt;Bill&lt;/p&gt;</description></item><item><title>Re: Ultra New to Infopath - Calculated Angle as decimal need to use Absolute value - and others.</title><link>https://www.infopathdev.com:443/forums/thread/77076.aspx</link><pubDate>Tue, 03 Apr 2012 02:20:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77076</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77076.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77076</wfw:commentRss><description>&lt;p&gt;Hello wapfunz,&lt;/p&gt;&lt;p&gt;It should be possible to get conditional formatting to work with negative values, but there is an XPath trick you can use to get the absolute value of something without any code.&amp;nbsp; The formula looks like this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;value&lt;/strong&gt; * (1 - 2 * (&lt;strong&gt;value&lt;/strong&gt; &amp;lt; 0))&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;VBA isn&amp;#39;t available for coding in InfoPath.&amp;nbsp; The languages supported in the newest version of InfoPath are C# and VB.NET, though we don&amp;#39;t usually recommend using code unless you&amp;#39;re an experienced coder (and even then we recommend avoiding it if you can).&lt;/p&gt;&lt;p&gt;Would you happen to be using InfoPath 2010 and SharePoint 2010?&amp;nbsp; If so, I believe it may be possible to use the Excel REST services to access Excel&amp;#39;s trig functions, though I would have to check on that.&lt;/p&gt;</description></item><item><title>Ultra New to Infopath - Calculated Angle as decimal need to use Absolute value - and others.</title><link>https://www.infopathdev.com:443/forums/thread/77074.aspx</link><pubDate>Mon, 02 Apr 2012 23:31:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77074</guid><dc:creator>wapfunz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77074.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77074</wfw:commentRss><description>&lt;p&gt;1) I have three fields that are used to calculate an angle of a conveyor.&lt;/p&gt;&lt;p&gt;Given infopath doesn&amp;#39;t have any inbuilt functions for trig, I do in two parts. Infeed_Height - Outfeed_Height, then that answer divided by the length and use the decimal result.&lt;/p&gt;&lt;p&gt;For positive decimal angles I can get conditional formatting and validation.&lt;/p&gt;&lt;p&gt;When the decimal angle turns negative, there is no conditionals that will allow this so I need absolute value.&lt;/p&gt;&lt;p&gt;If I could make the decimal&amp;nbsp;angle have a degree value - wonderful.&lt;/p&gt;&lt;p&gt;2) Can I use the VB trig functions and if so how do I call up?&lt;/p&gt;&lt;p&gt;3) can I use VBA absolute fuvtion - and if so how.&lt;/p&gt;&lt;p&gt;4) where do you start&amp;nbsp;/ how do you start say writing an event in vba in Infopath. I figure infopath uses visual studio - that use declarations etc - how do i declare vba functions&lt;/p&gt;&lt;p&gt;Like in the above I wish to check the value of the calculated field and use the absolute value if I cannot change the decimal to a trigonometric value in degrees.&lt;/p&gt;&lt;p&gt;If the calculated value is &amp;lt;= 0.194 (11 Degrees - tan) value is Ok&lt;/p&gt;&lt;p&gt;If value is &amp;gt;0.194 but &amp;lt;0.249 (14 degrees) optional&lt;/p&gt;&lt;p&gt;Value is greater &amp;gt; 0.249 not allowed&lt;/p&gt;&lt;p&gt;Negative values are ok but follow same rules but they are negative&lt;/p&gt;&lt;p&gt;So where do I start with the code? - an example would be great if it can be done.&lt;/p&gt;&lt;p&gt;How to start VB&amp;nbsp;code in infopath&amp;nbsp;for dumbies like me would be great.&lt;/p&gt;&lt;p&gt;Thank you in advance for any consideration of an answer&amp;nbsp;and help.&lt;/p&gt;</description></item></channel></rss>