Archive for the ‘VBScript’ Category

VBScript String Methods in a Simple PHP Class

August 24th, 2009

When some people start out in a new language, they are in it for the long haul.  Other people sometimes just need to touch on it without getting into the details.  PHP is one of those languages where you can do things in a quick and dirty way without getting into the details.  I have written a simple class for the kind of person that just wants to get a few things done quickly that is familiar with VBScripting.  The class is mainly a wrapper class that allows you to perform VBScript style methods on strings in PHP.  For instance, you can use VBScript::Left($string, $length) instead of using PHP’s substr($string, 0, $length).  Enjoy!
» More: VBScript String Methods in a Simple PHP Class

HTA Progress Bar using VBScript and JavaScript

July 17th, 2009

I was informed after my last post that using HTA (HTML Applications) to display a progress bar in VBScript is much more efficient than using InternetExplorer.Application within a VBScript. Having never used HTA before, I immediately set out to learn a bit and see what I could come up with.

My initial thoughts are mixed, as you can not run and interact with an HTA from a VBScript file.  This requires you to wrap your VBScript code in whatever HTML Application you are writing. This greatly limits re-usability, enough so that the increase in performance may not warrant using an HTA for a progress bar in most cases.
» More: HTA Progress Bar using VBScript and JavaScript

Simple VBScript Progress Bar

July 16th, 2009

Recently I had a need for a simple progress bar written in VBScript to let users know what was going on in a multi-step application. To my surprise, VBScript has nothing built in for a progress bar.  After much searching, I was able to find this thread that linked to yet another thread with a simple progress bar done in HTML using InternetExplorer.Application.  I have taken this code and modified it to show an actual progess bar, with percentages, that can be updated as desired.  I’ve wrapped it up in a nice easy-to-use class for reusability.  Enjoy!

» More: Simple VBScript Progress Bar