I have to agree with Bryce. I alwasy check whether an object has been created properly by using either VARTYPE($objVar)=9 or an IsObject($objVar) [VB SCript].
BTW, we should have some shortcut Is...() functions build into KiXtart, especially with the new number formats so we can check quickly for e.g. IsString, IsInteger, IsObject, IsArray, IsFloat and so on instead of the VarType(). Personal reason: I'm lazy and can't remember all the VarType return numbers, so I have to look it up in the manual (20 seconds each, 5 times a day, enough time to gulp down a cup of coffee, thus I'd prefer the coffee)
_________________________
There are two types of vessels, submarines and targets.