Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Procedure and Form's phylosophies!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00314465
Message ID:
00314504
Vues:
32
>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.
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform