Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return values and other standards
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00154804
Message ID:
00154823
Views:
22
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
Previous
Reply
Map
View

Click here to load this message in the networking platform