Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return values and other standards
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00154804
Message ID:
00154823
Vues:
20
I prefer to return a .T. for success and an .F. for failed. Then, I cram an error code and error text in an array on the object. That way, I can do things like:

IF NOT MyObject.Execute()
WAIT WINDOW "An Error Occured: " + MyObject.ErrorText
ENDIF

Don't know how this all fits in with OOP theory. I'm still learning.

Marty
Marty Smith, CSQE
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform