Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OOP aware DoForm function suggestions
Message
From
03/01/2009 09:10:41
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP1
Application:
Desktop
Miscellaneous
Thread ID:
01370806
Message ID:
01370822
Views:
20
>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?

What do you mean "OOP wants me to populate the properties instead of passing parameters and I agree with it"? I wouldn't agree, I think but probably I didn't understand.
Without knowing exactly what your DoForm() is doing it is hard to determine, but yes you can populate properties after you get a reference to object it creates. Looks like:

oForm = doform()
oForm.SomeProperty = somevalue

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform