Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How much of your code do you test?
Message
From
13/11/2002 09:22:14
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, United States
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00721300
Message ID:
00722080
Views:
28
> Had a thought on this that I want to share. Beginning with VFP 6.0,
> validating data for objects became a whole lot easier with the _Access
> and _Assign events. Combined with the bitwise functions, it makes
> checking for a large number of properties a snap. The following is from
> my own work.
>

george -

you know, you make a very good point there. the stuff i wrote about
having a validation section at the beginning of a subprogram, was
written when i was in my 'structured-programming-frame-of-mind'.
when i am in my 'object-oriented-frame-of-mind' i realize that by
design, an good reason for using assignor methods for an object, is
that that is a good place to do your validation!!!

i guess when some of my form methods get larger, i relapse back into
my structured-programming-frame-of-mind and treat that code like a
microcosm.
patrick
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform