Since many states use the same 'basic' tax system, surely simplest to do
this from the mainline:

StateTaxes(StateCode)

and then in the StateTaxes procedure, simply have separate procedures (or,
gasp, subroutines) for the 'exception' states, otherwise do standard
processing, e.g.:

select;
when StateCode = 'NY';
StateTaxesNY();
when StateCode = 'CT';
StateTaxesCT();
when StateCode = 'CA';
StateTaxesCA();
other
...processing for all 'standard' states goes here...
endsl;

On Mon, Aug 6, 2012 at 12:21 PM, Peter Dow <petercdow@xxxxxxxxx> wrote:

Interesting.

StateTaxes(StateCode);

or

Select;
case when StateCode = 'NY';
callp StateTaxesNY;
case when StateCode = 'NJ';
callp StateTaxesNJ;
...
EndSl

or

If StateCode = 'NY';
callp StateTaxesNY;
elseif StateCode = 'NJ';
callp StateTaxesNJ;
elseif StateCode = ...

Personally, I'd rather keep the main logic as simple as possible, and
put the state tax calculation differences in the procedure.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.