Hi,
Watch out for this type of thing:
It should be:Code:if ( CustomerAge = 1 ) { SeniorDiscountRate = 10; } if ( DeliveryService = 1) { DeliveryService = 20; }
If you just use a single '=' you assign 1 to the variable, you're not comparing it with 1. You normally won't get any warning from the compiler, so it's a an easy mistake to make. I've not checked to see if there are any other problems.Code:if ( 1 == CustomerAge ) { SeniorDiscountRate = 10; } if ( 1 == DeliveryService) { DeliveryService = 20; }
Alan




Reply With Quote
