Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Procedure and Form's phylosophies!
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00314465
Message ID:
00314504
Views:
33
>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."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform