Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OOP aware DoForm function suggestions
Message
From
03/01/2009 10:47:32
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP1
Application:
Desktop
Miscellaneous
Thread ID:
01370806
Message ID:
01370832
Views:
16
>Hi all
>
>Currently I am using the DoForm() as supplied in the CodeBook framework to instantiate my mover class. Essentially DoForm() sets the mouse pointer, CREATEOBJECT()s, SHOW()s the form, returns the return value if found and resets the mouse pointer (?). Just to avoid repetitive steps I tend to use DoForm() instead of instantiating the object and stuff myself, the downside is that the mover has to have an LPARAMETERS in it's Init().
>
>OOP wants me to populate the properties instead of passing parameters and I agree with it, can such a DoForm() be written that does what it does and yet allow me to populate properties instead of using parameters?

OOP does not want you to populate properties instead of passing parameters. If you do that two objects calling a method of a third object can interfere with one another.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform