$result= is needed - big time !

The writevalue() function always returns an error code (actually all "functions" return an error code). If you don't specify $result=, this code gets written to your console.

This makes for some interesting effects, especially if you have one of these functions in a loop...


c:\> kix32 script.kix
0000000000000000000000000000000000000

I personally use this...

$= writevalue()

or this...

$rs = writevalue()

But others do this...

$nul = writevalue()
$q = writevalue()
$result = writevalue()

Doesn't really matter what you use, the effect is the same !

Shawn.