Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MVC Design pattern in VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
01123771
Message ID:
01123911
Vues:
92
Martín, how are you ?
I have to convert an application, than for commercial issues, I must reprogram part of this in VFP.

The majority is coded in JAVA, I thought continuing the architectural model and some designing patterns, but in VFP ( n-Tier, MVC, etc.)

The fill-out forms I made them in 3-tiers arq. I follow as example some modules of your framework "TierAdapter 2" and Cursor Adapter class to replace "Hibernate" as relational persistence framework.

The problem:

Some forms, for example, requesting parameters to print a report I wanted to use MVC.
The View tier is made. The Controller tier was made using "define class as session" and creating the methods for any action in the form.

But I had problems to create the model-tier in VFP.
For example, the definition of the class, must be "session" or not.
Differences among CREATEOBJECT and NEWOBJECT.
Visibility and scope of objects.
How can I implement in VFP the operators Package from JAVA or using from C# ? I don't want use PUBLIC from scope of objects.

I think that my problem is with object functions and operators in VFP than design patterns.

Thanks in advance

>Hi, Ricardo.
>
>>Has somebody some brief example or knows any link with "Model - View - Controller architectural Design pattern" examples exclusively in VFP?
>>
>>I use them in JAVA, but, somehow I'm making some designing error with VFP.
>>
>>I'm a little tired crossing code from JAVA to VFP and I need a hand with examples :-)
>
>It is the same in Java, VFP or C++. What kind of eample do you need? Maybe I can help you building one, here or at the Spanish forum. Just tell me.
>
>See you,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform