Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OOP aware DoForm function suggestions
Message
De
03/01/2009 09:10:41
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Application:
Desktop
Divers
Thread ID:
01370806
Message ID:
01370822
Vues:
21
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform