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.