I know, but it is old code. Checking on the existence of the $System object works well for me, but better would be checking with VarType().
_________________________
Kind regards,