>>PMFJI, but for us, it was "You need to select one (or possibly two) printers to use and we will write the system to >support that. If you want any more than that, it will cost you this much extra for us to research each printer and >design and develop a solution for each". The client has been reasonable about it.
>
>Charge them extra for supporting something else, now there is a concept.... :-)
>
>But if I keep accepting other hardware to support my code would eventually be full of "IF-ENDIF" and "DO CASE - ENDCASE" statements which I'm trying to stay away from. Pretty soon there won't be enough money in the world for me to support all those different hardware.
Yes you will have a CASE statement but it will just determine what "Printer" object you instantiate.
The main module will only change as you add other hardware so this is very managable. I think breaking off each supported printer into its own object (that inherits from your base printer class) makes it more managable as well.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao