torrboy But there's Nothing here!

JArgUtility

Possibly the most useful four lines of C++ code ever written for JScript programmers!

OK, maybe that's a bit over the top (and there's actually more than four lines, but the rest is overhead), but this is pretty useful!

The Torrboy.JArgUtility ActiveX component lets you pass Nothing to other ActiveX objects, something that until now has not been possible (at least, not without someone else's 3rd Party components!).*

It also allows you to bypass "optional" arguments in method calls. These two features have bee available out-of-the-box to VBScript programmers all along, and it's time you, as a JScript programmer, had the same luxury!

The component, complete with source code, a sample WSH file, a VB tester DLL, and some simple documentation can be downloaded from here.

*Andrew Nosenko from Mead and Company points out that you can use void 0 in JScript to represent Nothing in calls to some ActiveX Components, but I have found that this doesn't work in all cases (unlike the JArgUtility compontent ;-) ).

  HOME | TESTS | CODE | TEXT | LINKS | CONTACT