javascript - Uncaught ReferenceError: bedCostOutput is not defined -
//bedcostoutput has been defined below i'm getting error function has not been defined. program should pull data outside file , process//
function processbedcostclass() { this.calculatedeliverycredit = calculatedeliverycredit; this.calculatetradecredit = calculatetradecredit; this.calculatebeddiscount = calculatebeddiscount; this.calculatefinalbedcost = calculatefinalbedcost; } function drivermodule_click() { openbedcostfile(); processbedcostfile(); closebedcostfile(); } function processbedcostfile() { { bedcostinput(); processbedcost1.calculatedeliverycredit(); processbedcost1.calculatetradecredit(); processbedcost1.calculatebeddiscount(); processbedcost1.calculatefinalbedcost(); bedcostoutput(); } while (!feof(infile)); } function bedcostinput() { processbedcost1 = new processbedcostclass(); inline = readline(infile); if (inline) { params = inline.split(","); processbedcost1.markedprice = number(params[0]); processbedcost1.delivery = params[1]; processbedcost1.tradein = params[2]; } }
Comments
Post a Comment