Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Properties, Methods, and Init questions...
Message
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00830419
Message ID:
00830672
Views:
17
David,

1) I wasn't proposing using Get/Set methods...at least not the type that simply goes and gets a property. I see no reason for such constructs now that we have access and assign methods. My GetFileNum example just happened to start with "Get"...sorry for the confusion...

2) Yes, I am tending to agree with just using assign methods for property validation and clean-up... Otherwise there is too much triggering and making it hard to follow.

3) I see your point about properties vs. parameters. I hadn't thought about the documentation possibilities for properties. That CAN be nice (any tools out there that will dump all the property descriptions? An object documenter?). So, only pass to the Init what the object needs to start, and if possible, even make that a bare minimum. Like ADO...create the objects, and then set properties and call methods. Makes sense, and I value your opinion.

Thanks for the response!

JoeK
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform