<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.method.me/cs/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>Method:Classic General Q&amp;amp;A</title><link>http://forums.method.me/cs/forums/13.aspx</link><description>Ask technical support questions, how do I? Questions... Or anything else you want to know from the Method Team and other Method users.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>Re: Need Report Designer VB FOR...NEXT loop</title><link>http://forums.method.me/cs/forums/thread/26588.aspx</link><pubDate>Wed, 08 Apr 2015 19:42:16 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:26588</guid><dc:creator>robert.cowart</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/26588.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=26588</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;Here is the FOR...LOOP construct I am using successfully:&lt;span id="mce_5_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;.....&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_2_start" style="overflow:hidden;"&gt;&lt;/span&gt;FOR Week &lt;span id="mce_3_start" style="overflow:hidden;"&gt;&lt;span id="mce_4_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;as integer = 1 to WeekCount &amp;#39;&amp;#39; what if its one week and WeekCount = 0?? Does the loop fire once at least?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; n&lt;span id="mce_1_start" style="overflow:hidden;"&gt;&lt;/span&gt;ewrate = cSng(WeekCounter.text) + 1 &amp;#39; or to create a loop that calcs it once correctly, including W,1,B SOL freq&lt;br /&gt;&amp;nbsp; WeekCounter.text = newrate.tostring&lt;br /&gt;&amp;nbsp; ForDate = Microsoft.VisualBasic.DateAdd(&amp;quot;d&amp;quot;, ((Week-1) * 7) , ForStartDate )&lt;br /&gt;&amp;nbsp; IF FirstOfYear &amp;lt;= ForDate and ForDate &amp;lt;= StartDateParm then&lt;br /&gt;&amp;nbsp; &amp;nbsp; if UpperOther1 &amp;lt;&amp;gt; &amp;quot;W&amp;quot; then &amp;#39; will this with the W and w?&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if ( UpperOther1 = &amp;quot;B&amp;quot; AND ( Microsoft.VisualBasic.DATEDIFF(&amp;quot;d&amp;quot;, ForStartDate, ForDate) MOD 14 = 0 ) ) OR _&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;( UpperOther1 = &amp;quot;1&amp;quot; AND ( Microsoft.VisualBasic.DATEDIFF(&amp;quot;d&amp;quot;, ForStartDate, ForDate) MOD 28 = 0 ) ) then&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; wkly = SngRate&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; wkly = 0.0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; end if&lt;br /&gt;&amp;nbsp; &amp;nbsp; end if&lt;br /&gt;&amp;nbsp; &amp;nbsp; newrate = cSng(ClassYTDRevenue.text) + wkly &amp;#39; or to create a loop that calcs it once correctly, including W,1,B SOL freq&lt;br /&gt;&amp;nbsp; &amp;nbsp; ClassYTDRevenue.text = newrate.tostring&lt;br /&gt;&amp;nbsp; &amp;nbsp; newrate = cSng(TotalYTDRevenue.text) + wkly &amp;#39; or to create a loop that calcs it once correctly, including W,1,B SOL freq&lt;br /&gt;&amp;nbsp; &amp;nbsp; TotalYTDRevenue.text = newrate.tostring&lt;br /&gt;&amp;nbsp; END IF&lt;br /&gt;NEXT&lt;span id="mce_6_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;.....&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: Need Report Designer VB FOR...NEXT loop</title><link>http://forums.method.me/cs/forums/thread/26510.aspx</link><pubDate>Wed, 01 Apr 2015 16:46:36 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:26510</guid><dc:creator>Method_Audisho</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/26510.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=26510</wfw:commentRss><description>&lt;p&gt;Hi Rob,&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;We don&amp;rsquo;t have any documentation for what is supported through VB and C# in Report Designer scripts. You can find a &lt;a href="https://msdn.microsoft.com/en-us/library/2f43da0y.aspx"&gt;VB reference guide&lt;/a&gt; on Microsoft&amp;rsquo;s website. There may be a few limitations, but you will need to discover these through trial and error. Have you tried creating the script yet? What was the result?&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I know we support For Each statements, and am fairly sure that you can use a For&amp;hellip;Next statement. If you are having difficulty with a script, maybe you can tell me what you&amp;rsquo;ve got so far and detail what it is that you are trying to accomplish. I&amp;rsquo;m happy to look into it.&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Audisho&lt;span id="mce_3_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Need Report Designer VB FOR...NEXT loop</title><link>http://forums.method.me/cs/forums/thread/26507.aspx</link><pubDate>Wed, 01 Apr 2015 16:11:32 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:26507</guid><dc:creator>robert.cowart</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/26507.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=26507</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;I need a FOR...NEXT loop in an OnBeforePrint event. &amp;nbsp;Where is the language documentation for all supported VB logical constructs within&lt;span id="mce_3_start" style="overflow:hidden;"&gt;&lt;/span&gt; events in the Report Designer?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;span id="mce_2_start" style="overflow:hidden;"&gt;&lt;span id="mce_3_end" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>