Re: Writing to a file and a TextArea




Hello there! The application I am building will calculate the total sales for
any number of salesmen.


switch(product)
{
case 1: sales = (amount * 2.98);
break;

case 2: sales = (amount * 4.50);
break;

case 3: sales = (amount * 9.98);
break;

case 4: sales = (amount * 4.49);
break;

case 5: sales = (amount * 6.87);
break;

default: sales = (0.00);
}

Hi,

I'd read the numbers you have from a properties file so that your not re-releasing code each time a price changes.

priceinfo = 2.98,4.50,9.98,4.49,6.87

regards,
Martin.
.



Relevant Pages

  • Re: join problem
    ... Regards ... Your query would start with the ... >> Absatz means sales in german and Mitarbeiter is Employee.ABSATZVORJAHR ...
    (microsoft.public.access.queries)
  • RE: How do I convert functions that are zero into a null ?
    ... In regards to my reply about the ISNAfunction, ... >> I have a sales worksheet that totals monthly from January thru December. ... >> I plot the summary sales by month in a simple line chart. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: subform connected to main form and another subform
    ... > Best regards, ... The original problem has been solved, ... item sales subform is jittery and does not act like a regular combo box. ... I somtimes sell things without a room ...
    (microsoft.public.access.formscoding)
  • Re: News
    ... H FW managed to increase the sales of intensively reared birds during his ... outburst. ...
    (uk.business.agriculture)
  • Re: Would u help me with a Biggest Movers type of comparison?
    ... just realised you wanted the biggest changes as opposed to the ... Regards ... > Might want to consider a pivot table. ... > Drag your salesman ID field into the ROW areas and then drag the Sales ...
    (microsoft.public.excel.misc)