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 10:40:48
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00721300
Message ID:
00722148
Views:
23
George,

That's good stuff. Thanks for sharing it...

>
>I had a situation where a large number of properties (over 20) had to be properly initialized prior to making some very complex calculations. By adding an _Assign method to each property, I was easily able to validate the incoming information. If the information was valid, I set a bit of an integer property to indicate that the data was valid. If it was invalid, I made sure that the bit was cleared. Each property was thus represented by a bit. Using BITAND() allowed me to easily test to make sure that all the necessary properties were properly initialized.
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform