﻿<?xml version="1.0" encoding="UTF-8"?>
<!--RSS generated by Windows SharePoint Services V3 RSS Generator on 9/10/2010 6:30:33 AM-->
<?xml-stylesheet type="text/xsl" href="/vbslibrary/_layouts/RssXslt.aspx?List=846ef893-fdad-4320-8116-2617e0c1b4aa" version="1.0"?>
<rss version="2.0">
  <channel>
    <title>VBScript Library: Knowledge Base</title>
    <link>http://networkadminkb.com/vbslibrary/Knowledge Base/Forms/AllItems.aspx</link>
    <description>RSS feed for the Knowledge Base list.</description>
    <lastBuildDate>Fri, 10 Sep 2010 13:30:32 GMT</lastBuildDate>
    <generator>Windows SharePoint Services V3 RSS Generator</generator>
    <ttl>60</ttl>
    <image>
      <title>VBScript Library: Knowledge Base</title>
      <url>/vbslibrary/_layouts/images/homepage.gif</url>
      <link>http://networkadminkb.com/vbslibrary/Knowledge Base/Forms/AllItems.aspx</link>
    </image>
    <item>
      <title>CSVJoin</title>
      <link>http://networkadminkb.com/vbslibrary/Knowledge Base/Forms/DispForm.aspx?ID=23</link>
      <description><![CDATA[<div><b>Keywords:</b> String Conversion</div>
<div><b>Article Content:</b> <div>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'********************************************************************</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'* </span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'* Function CSVJoin</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'* </span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'*<span>   </span>Author: NetworkAdminKB.com</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'*<span>  </span>Created: 2008-05-24</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'* Modified: 2008-05-24</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'*</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'* Purpose: Returns an comma delimited string from an array with the</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'*<span>             </span>individual values in quotes (or another qualifier).</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'*<span>             </span>This is similar to the VBScript Join function.<span>  </span>However,</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'*<span>             </span>this function qualifies the individual values as well.</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'* </span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'* Input:<span>  </span>aryAny<span>        </span>Any Array of values.</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'*<span>         </span>strDelimiter<span>  </span>The delimiter for the values in the array.</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'*<span>                         </span>Default = &quot;,&quot;</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'*<span>         </span>strQualifier<span>  </span>The qualifier for the values.</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'*<span>                  </span><span>       </span>Default is none (Empty)</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'*</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'* Output:<span>  </span>Returns an comma delimited string from an array with the</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'*<span>             </span>individual values in quotes (or another qualifier).</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'*<span>          </span>Returns Empty if aryAny is not an Array</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'*</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'* Changes:</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'********************************************************************</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:blue;font-family:'Lucida Console'">Function</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> CSVJoin</span><span style="font-size:10pt;color:navy;font-family:'Lucida Console'">(</span><span style="font-size:10pt;color:blue;font-family:'Lucida Console'">ByRef</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> aryAny</span><span style="font-size:10pt;color:navy;font-family:'Lucida Console'">,</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:10pt;color:blue;font-family:'Lucida Console'">ByVal</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> strDelimiter</span><span style="font-size:10pt;color:navy;font-family:'Lucida Console'">,</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:10pt;color:blue;font-family:'Lucida Console'">ByVal</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> strQualifier</span><span style="font-size:10pt;color:navy;font-family:'Lucida Console'">)</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:black;font-family:'Lucida Console'"><span>  </span></span><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'Version 1.0 2008-05-24</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:black;font-family:'Lucida Console'"><span>  </span></span><span style="font-size:10pt;color:blue;font-family:'Lucida Console'">Dim</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> x</span><span style="font-size:10pt;color:navy;font-family:'Lucida Console'">,</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> strNew</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:black;font-family:'Lucida Console'"><span>  </span></span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:black;font-family:'Lucida Console'"><span>  </span></span><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'Set default if not specified</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:black;font-family:'Lucida Console'"><span>  </span></span><span style="font-size:10pt;color:blue;font-family:'Lucida Console'">If</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> Len</span><span style="font-size:10pt;color:navy;font-family:'Lucida Console'">(</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'">strDelimiter</span><span style="font-size:10pt;color:navy;font-family:'Lucida Console'">)</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:10pt;color:navy;font-family:'Lucida Console'">=</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:10pt;color:purple;font-family:'Lucida Console'">0</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:10pt;color:blue;font-family:'Lucida Console'">Then</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> strDelimiter </span><span style="font-size:10pt;color:navy;font-family:'Lucida Console'">=</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:10pt;color:maroon;font-family:'Lucida Console'">&quot;,&quot;</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:black;font-family:'Lucida Console'"><span>  </span></span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:black;font-family:'Lucida Console'"><span>  </span></span><span style="font-size:10pt;color:blue;font-family:'Lucida Console'">If</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> IsArray</span><span style="font-size:10pt;color:navy;font-family:'Lucida Console'">(</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'">aryAny</span><span style="font-size:10pt;color:navy;font-family:'Lucida Console'">)</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:10pt;color:blue;font-family:'Lucida Console'">Then</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:black;font-family:'Lucida Console'"><span>    </span>strNew </span><span style="font-size:10pt;color:navy;font-family:'Lucida Console'">=</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> strQualifier </span><span style="font-size:10pt;color:navy;font-family:'Lucida Console'">&amp;</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> Join</span><span style="font-size:10pt;color:navy;font-family:'Lucida Console'">(</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'">aryAny</span><span style="font-size:10pt;color:navy;font-family:'Lucida Console'">,</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> strQualifier </span><span style="font-size:10pt;color:navy;font-family:'Lucida Console'">&amp;</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> strDelimiter </span><span style="font-size:10pt;color:navy;font-family:'Lucida Console'">&amp;</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> _</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:black;font-family:'Lucida Console'"><span>               </span>strQualifier</span><span style="font-size:10pt;color:navy;font-family:'Lucida Console'">)</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:10pt;color:navy;font-family:'Lucida Console'">&amp;</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> strQualifier</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:black;font-family:'Lucida Console'"><span>  </span></span><span style="font-size:10pt;color:blue;font-family:'Lucida Console'">Else</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:black;font-family:'Lucida Console'"><span>    </span>strNew </span><span style="font-size:10pt;color:navy;font-family:'Lucida Console'">=</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:10pt;color:blue;font-family:'Lucida Console'">Empty</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:black;font-family:'Lucida Console'"><span>  </span></span><span style="font-size:10pt;color:blue;font-family:'Lucida Console'">End</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:10pt;color:blue;font-family:'Lucida Console'">If</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'IsArray(aryAny)</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:black;font-family:'Lucida Console'"><span>  </span>CSVJoin </span><span style="font-size:10pt;color:navy;font-family:'Lucida Console'">=</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> strNew</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:10pt;color:blue;font-family:'Lucida Console'">End</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:10pt;color:blue;font-family:'Lucida Console'">Function</span><span style="font-size:10pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:10pt;color:green;font-family:'Lucida Console'">'CSVJoin</span></p></div></div>
<div><b>Name:</b> CSVJoin.aspx</div>
]]></description>
      <author>TEMPLATE\kbadmin</author>
      <pubDate>Tue, 25 Nov 2008 05:22:40 GMT</pubDate>
      <guid isPermaLink="true">http://networkadminkb.com/vbslibrary/Knowledge Base/Forms/DispForm.aspx?ID=23</guid>
    </item>
    <item>
      <title>RPadString</title>
      <link>http://networkadminkb.com/vbslibrary/Knowledge Base/Forms/DispForm.aspx?ID=49</link>
      <description><![CDATA[<div><b>Keywords:</b> String Concatenation</div>
<div><b>Article Content:</b> <div>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'********************************************************************</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'* </span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'* Function RPadString</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'*</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'*<span>   </span>Author: NetworkdAdminKB.com</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'*<span>  </span>Created: 2007-01-07</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'* Modified: 2007-01-07</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'* </span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'* Purpose: On the right side Pad a string with the specified character </span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'*<span>            </span>until it is the specified length.</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'*</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'* Input:<span>   </span>strAny = The string to pad</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'*<span>          </span>intLen = The total string length after padding</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'*<span>          </span>strPad = The character string to suffix strAny with.</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'*</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'* Output:<span>  </span>Returns the string suffixed with the specified character</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'*<span>            </span>to the specified length.</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'*<span>          </span>Returns the existing string if Length(strAny) &gt;= intLen</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'*<span>          </span>Returns Empty if an error occurs</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'* </span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'********************************************************************</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:blue;font-family:'Lucida Console'">Function</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> RPadString</span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">(</span><span style="font-size:9pt;color:blue;font-family:'Lucida Console'">ByVal</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> strAny</span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">,</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:9pt;color:blue;font-family:'Lucida Console'">ByVal</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> intLen</span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">,</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:9pt;color:blue;font-family:'Lucida Console'">ByVal</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> strPad</span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">)</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:black;font-family:'Lucida Console'"><span>  </span></span><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'Version: 1.0 2007-01-07</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:black;font-family:'Lucida Console'"><span> </span><span> </span></span><span style="font-size:9pt;color:blue;font-family:'Lucida Console'">Dim</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> strTemp</span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">,</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> x</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:black;font-family:'Lucida Console'"><span>  </span></span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:black;font-family:'Lucida Console'"><span>  </span></span><span style="font-size:9pt;color:blue;font-family:'Lucida Console'">If</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> Len</span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">(</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'">strPad</span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">)</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">&lt;&gt;</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:9pt;color:purple;font-family:'Lucida Console'">1</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:9pt;color:blue;font-family:'Lucida Console'">Then</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:black;font-family:'Lucida Console'"><span>    </span>Wscript</span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">.</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'">Echo </span><span style="font-size:9pt;color:maroon;font-family:'Lucida Console'">&quot;RPadString: strPad must be one character in length.&quot;</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:black;font-family:'Lucida Console'"><span>    </span>RPadString </span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">=</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:9pt;color:blue;font-family:'Lucida Console'">Empty</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:black;font-family:'Lucida Console'"><span>    </span></span><span style="font-size:9pt;color:blue;font-family:'Lucida Console'">Exit</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:9pt;color:blue;font-family:'Lucida Console'">Function</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:black;font-family:'Lucida Console'"><span>  </span></span><span style="font-size:9pt;color:blue;font-family:'Lucida Console'">End</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:9pt;color:blue;font-family:'Lucida Console'">If</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'Len(strPad) &lt;&gt; 1</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:black;font-family:'Lucida Console'"><span>  </span></span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:black;font-family:'Lucida Console'"><span>  </span></span><span style="font-size:9pt;color:blue;font-family:'Lucida Console'">If</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> Len</span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">(</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'">strAny</span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">)</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">&lt;</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> intLen </span><span style="font-size:9pt;color:blue;font-family:'Lucida Console'">Then</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:black;font-family:'Lucida Console'"><span>    </span></span><span style="font-size:9pt;color:blue;font-family:'Lucida Console'">For</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> x </span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">=</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:9pt;color:purple;font-family:'Lucida Console'">1</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:9pt;color:blue;font-family:'Lucida Console'">to</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">(</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'">intLen </span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">-</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> Len</span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">(</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'">strAny</span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">))</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:black;font-family:'Lucida Console'"><span>      </span>strTemp </span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">=</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> strTemp </span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">&amp;</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> strPad</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:black;font-family:'Lucida Console'"><span>    </span></span><span style="font-size:9pt;color:blue;font-family:'Lucida Console'">Next</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'x</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:black;font-family:'Lucida Console'"><span>    </span>RPadString </span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">=</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> strAny </span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">&amp;</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> strTemp</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:black;font-family:'Lucida Console'"><span>  </span></span><span style="font-size:9pt;color:blue;font-family:'Lucida Console'">Else</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:black;font-family:'Lucida Console'"><span>    </span>RPadString </span><span style="font-size:9pt;color:navy;font-family:'Lucida Console'">=</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> strAny</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:black;font-family:'Lucida Console'"><span>  </span></span><span style="font-size:9pt;color:blue;font-family:'Lucida Console'">End</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:9pt;color:blue;font-family:'Lucida Console'">If</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'Len(strAny) &lt; intLen</span></p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:green;font-family:'Lucida Console'"></span> </p>
<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:9pt;color:blue;font-family:'Lucida Console'">End</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:9pt;color:blue;font-family:'Lucida Console'">Function</span><span style="font-size:9pt;color:black;font-family:'Lucida Console'"> </span><span style="font-size:9pt;color:green;font-family:'Lucida Console'">'RPadString</span></p></div></div>
<div><b>Name:</b> RPadString.aspx</div>
]]></description>
      <author>leslinger</author>
      <pubDate>Sun, 07 Dec 2008 21:48:51 GMT</pubDate>
      <guid isPermaLink="true">http://networkadminkb.com/vbslibrary/Knowledge Base/Forms/DispForm.aspx?ID=49</guid>
    </item>
  </channel>
</rss>