<?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: VBscript problem</title><link>https://www.infopathdev.com:443/forums/thread/14639.aspx</link><pubDate>Tue, 06 Jun 2006 23:08:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14639</guid><dc:creator>SamDahl</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14639.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14639</wfw:commentRss><description>Here's a good website for VBS syntax:&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://www.w3schools.com/vbscript/default.asp&gt;http://www.w3schools.com/vbscript/default.asp&lt;/a&gt;</description></item><item><title>Re: VBscript problem</title><link>https://www.infopathdev.com:443/forums/thread/14638.aspx</link><pubDate>Tue, 06 Jun 2006 23:06:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14638</guid><dc:creator>SamDahl</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14638.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14638</wfw:commentRss><description>Do While ( (Len(NewId) &amp;gt;0) AND (Len(NewId) &amp;lt; 9 )) &lt;br /&gt;NewId="0" &amp; NewId&lt;br /&gt;Loop</description></item><item><title>Re: VBscript problem</title><link>https://www.infopathdev.com:443/forums/thread/14637.aspx</link><pubDate>Tue, 06 Jun 2006 14:15:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14637</guid><dc:creator>Maglor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14637.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14637</wfw:commentRss><description>Use 'wend' instead of 'End While'?</description></item><item><title>Re: VBscript problem</title><link>https://www.infopathdev.com:443/forums/thread/14636.aspx</link><pubDate>Tue, 06 Jun 2006 05:44:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14636</guid><dc:creator>liorlankri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14636.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14636</wfw:commentRss><description>That's work!&lt;br /&gt;But I have new Problem:&lt;br /&gt;&lt;br /&gt;Private Function FormatId (OldId)&lt;br /&gt;    Dim NewId&lt;br /&gt;    NewId=OldId&lt;br /&gt;    While ( (Len(NewId) &amp;gt;0) AND  (Len(NewId) &amp;lt; 9 ))	&lt;br /&gt;    NewId="0" &amp; NewId&lt;br /&gt;    End While				&lt;br /&gt;    FormatId = NewId&lt;br /&gt;End function&lt;br /&gt;&lt;br /&gt;I get this error&lt;br /&gt;&lt;br /&gt;Expected statement&lt;br /&gt;File:script.vbs&lt;br /&gt;Line:56&lt;br /&gt;End While&lt;br /&gt;&lt;br /&gt;What is the problem?</description></item><item><title>Re: VBscript problem</title><link>https://www.infopathdev.com:443/forums/thread/14635.aspx</link><pubDate>Mon, 05 Jun 2006 23:41:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14635</guid><dc:creator>SamDahl</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14635.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14635</wfw:commentRss><description>Is there an 'As String' in VBS?&lt;br /&gt;seems to work without them...</description></item><item><title>VBscript problem</title><link>https://www.infopathdev.com:443/forums/thread/12890.aspx</link><pubDate>Mon, 05 Jun 2006 11:38:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12890</guid><dc:creator>liorlankri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12890.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12890</wfw:commentRss><description>I have a OnBeforeChange event. In this event code i Try to call to a private VBscript function.&lt;br /&gt;&lt;br /&gt;private Function FormatId (OldId As String) As String&lt;br /&gt;  Dim NewId As String&lt;br /&gt;  NewId="0" &amp; OldId 				&lt;br /&gt;  FormatId = NewId&lt;br /&gt;End function&lt;br /&gt;&lt;br /&gt;When I run the form I get this Error &lt;br /&gt;&lt;br /&gt;Expected ')'&lt;br /&gt;File:script.vbs&lt;br /&gt;Line:51&lt;br /&gt;private Function FormatId (OldId As String) As String&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What is the problem?&lt;br /&gt;</description></item></channel></rss>