>Can't answer why it does not work (I'm sure someone will chime in). As for the first question, how to detect, you could use a Try..Catch block around it.
Well, basically, I wanted to know if we could verify for the type, such as we do in VFP, to see if the object as in fact been created ok.