Information générale
Catégorie:
Programmation Orientée Object
My problem is that the calculation isn't obviously part of THIS.
eg
sales_tax(), called by quote, sale & return forms but needs an environment or a parameter or two such as STATE , Tax Code, price
I don't want to maintain 3 methods, so I currently add a .prg to the project.
I think you are saying to create an object holding sales_tax() and other methods, but that seems a lot more work than just adding the .prg to the project!
( ASIDE I use ExamDiff & FileFind to scan my .prg's , I haven't figured a way to do the same with embedded methods )
this.my_library.sales_tax() instead of SET PROC to my_library is better, I agree, but does it bloat the .exe ? Adding just the minimum necessary .prg's seems to create the smallest .exe, at least with my skills it does!
I try to avoid procedure files now, as it is getting to be a nuisance to maintain them rather than just hook the project back to the code! As I start to COM more, my projects get smaller , so adding a couple of .prg's seems most expediditious.
OTOH, if I can just grab the routine form an object and not have megabytes of code get into my project, I'd love it!
thx for the insight
mike
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement