I’m interrupting my previous thread to announce that I have officially released Tolerable VBScript — or, at least, I’ve published an alpha-release (I had to restart the code again to sever any possible legal ties). The official project page can be found here. So, major pieces of functionality are still missing (ex: support for OOP, […]
Okay, here’s a “fun” little brain teaser to test how well you understand VBScript. This first code snippet behaves exactly as you would expect: Z() defines a global variable, and this variable remains visible after the function returns:
Public Sub Z()
ExecuteGlobal "Dim x : x = 5"
' This will print "5"
This next code snippet introduces a minor variation, but now the last line produces an error: […]
Well, actually, it is — but that’s what makes it interesting. It’s such a terrible language that it really forces you to think about how to solve problems in a tractable fashion. The forces of evil at hand are: Zero support for external, reusable (VBScript) libraries. With a little effort, you can execute the contents […]
Life has been very busy over the last month. I’ve been involved in a number of projects, and in the process I’ve had to produce about 600,000 lines of code. I’d like to claim that I actually sat down and typed all of it, but that would be a lie. Ruby’s ERB templating engine has […]
As you may have guessed, VBScript has been pissing me off a lot lately. In an effort to avoid becoming overly bitter (or insane), I’ve implemented some core libraries that allow VBScript to be used as a functional language. This is version 1.0, so I’m sure I’ll be making some refinements over the next few […]
For reasons that are unknown to me, QTP only loads function libraries that are associated with the top-most Driver Test. Suppose the Driver Test invokes an external Action that is contained within another Test. If this external Action requires function library X, then this function library must also be associated with the Driver Test. Otherwise, […]