Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing receipts
Message
 
 
To
25/10/2000 10:50:19
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00433021
Message ID:
00434086
Views:
19
>>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.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform