Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking class definitions
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00813240
Message ID:
00813272
Vues:
10
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform