<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Vbscript on vanstechelman.eu</title>
    <link>https://www.vanstechelman.eu/tags/vbscript/</link>
    <description>Recent content in Vbscript on vanstechelman.eu</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 30 Apr 2015 10:13:27 +0000</lastBuildDate><atom:link href="https://www.vanstechelman.eu/tags/vbscript/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Importing vbscript code at runtime</title>
      <link>https://www.vanstechelman.eu/content/importing-vbscript-code-at-runtime/</link>
      <pubDate>Thu, 30 Apr 2015 10:13:27 +0000</pubDate>
      
      <guid>https://www.vanstechelman.eu/content/importing-vbscript-code-at-runtime/</guid>
      <description>
        
          
            &lt;p&gt;Many script languages have an import function that allows to import and execute code that is stored in another file. Microsoft&amp;rsquo;s vbscript however is lacking such functionality. This page shows how it can be accomplished to import and execute vbscript code that is stored in another file.&lt;/p&gt;
&lt;p&gt;Assume that you have the following file with some functions that you have defined:\&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&amp;#39; Filename = modMathFunction.vbs
Function Square(intNumber)
    Square = intNumber * intNumber
End Function
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Normally you would have to copy this function in each script in which you want to use this function. It is however possible to define an &lt;code&gt;import&lt;/code&gt; function in your vbscript code via which you can use this function without having to copy it.&lt;/p&gt;
          
          
        
      </description>
    </item>
    
    <item>
      <title>VBScript tips</title>
      <link>https://www.vanstechelman.eu/windows/vbscript_tips/</link>
      <pubDate>Wed, 09 Nov 2011 08:36:20 +0000</pubDate>
      
      <guid>https://www.vanstechelman.eu/windows/vbscript_tips/</guid>
      <description>
        
          
            &lt;p&gt;Some tips for doing things in vbscript.&lt;/p&gt;
          
          
        
      </description>
    </item>
    
  </channel>
</rss>