Code:

$System=CreateObject('KiXforms.System')
If Not $System


is incorrect syntax as $System is an object. Teh correct sytax would be
Code:

$System=CreateObject('KiXforms.System')
If Not vartype($System)=9


or
Code:

$System=CreateObject('KiXforms.System')
If @ERROR

_________________________
There are two types of vessels, submarines and targets.