Code: Select all
try
{
some_obj := ComObjCreate("ScriptControl1234")
}
catch err
{
; 0x800401F3 - Invalid class string
if (err.Message = "0x800401F3 - Invalid class string")
MsgBox % "No carriage return"
if (err.Message = "0x800401F3 - Invalid class string`r")
MsgBox % "With carriage return."
}