IF TYPE([CREATEOBJECT("object.classname")]) <> "O"
ENDIF
>Is there a way to verify that a class definition, ie "object.classname" exists before using createobject to create the object?
>
>We are writing hardware interfaces for a POS program, and when a user chooses a hardware device and tries the device, sometimes it crashes because they haven't installed the hardware device drivers properly.
>
>Anyway, it's annoying to me and the user when class definitions don't exist, or haven't been installed and they get an application shutdown message.
>
>Thanks!
--sb--