Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Procedure and Form's phylosophies!
Message
De
07/01/2000 13:09:19
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00314465
Message ID:
00314621
Vues:
26
Guys, guys, guys

Isn't this what polymorphism is all about. Put all common code in the parent method, call it from the child and put specific code in the child method.

What am I missing?

Rex

>>Hi Jess,
>>
>>Yes, i have my classes. To tell you the truth, i only work with my classes.
>>But, this case, it's different. I have different validations for each form and i don't have any way to normalize it for all forms.
>>I probabilly create a custom class with that methods.
>
>What we do is have our business rules defined in a custom method. Each form have their identifier handled by custom property so that the code looks like this:
>
>
>WITH Thisform
> DO CASE
> CASE .moduletype = 'INVOICE'
> ...code for invoicing here
> CASE .moduletype = 'REQUISITION'
> ...code for requisition here
> ENDCASE
>ENDWITH
>
>
>This is more secured and works with less hassle especially when you are using PRIVATE datasession.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform