Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking class definitions
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00813240
Message ID:
00813272
Views:
9
IF TYPE([CREATEOBJECT("object.classname")]) <> "O"
   * Class Doesn't exist
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform