To my mind you are looking at a sort of abstract factory pattern. You have:
Jones_Total = (Cost * Tax%) + Overhead (% added) on that subtotal + markup Smith_Total = (Cost + Overhead% + Markup) + Tax% So for Jones have a PRG with a function Calculate(cost, tax, overhead, markup) which calculates it his way, and similarly a PRG for Smith with a function Calculate(cost, tax, overhead, markup) which calculates it the Smith way. Just supply the relevant compiled FXP to the relevant customer (or even all of them to all customers). Then in your application configuration DBF or wherever you just store the name of the FXP to use. CostCalc = "jones.fxp" In your application startup: set procedure to (CostCalc) additive Then you just call Calculate() with your parameters. It will run the Calculate() function in whichever FXP you pointed at. -- Alan Bourke alanpbourke (at) fastmail (dot) fm _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/1447842404.1381976.443068793.009eb...@webmail.messagingengine.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.