The plaintiff corporation, located in the State of Ohio, sues the defendant company, located in Kansas City, Missouri, for a bill of goods sold the defendant on the fourth day of April, 1896, of the value of $194.62.
The defendant’s answer consists of a general denial and a counterclaim. The nature of this counterclaim is, that in January, 1892, the defendant being engaged in the wholesale grocery business, it was agreed between the plaintiff and defendant that the defendant would, in the territory in which it did business, work up a sale for and in behalf of the plaintiff of various extracts and chewing gums manufactured by plaintiff, and that defendant, for such services to be so rendered, was to receive and retain at least twenty-five per cent of the amount of sale so made for its profit; and that the defendant should have the exclusive sale of all said extracts and gums so manufactured by plaintiff in and for said territory so far as> Kansas City houses were concerned, and that no house at Kansas City should have the sale in said territory of any of said goods so manufactured by plaintiff. Defendant then alleges that in pursuance of said agreement, in the years 1892-3-4-5, it worked up a large trade in said territory for said goods received from the plaintiff and sold large quantities of them. It is further alleged that, notwithstanding said agreement the plaintiff, in the years 1895 and 1896, sold large quantities of said goods to Ridenour-Baker & Co., a partnership doing business in Kansas City; that said last-named company thereafter sold said goods of plaintiff in said territory; and that the defendant thereby lost the profit thereon amounting to over the sum of $250, for which amount it prays judgment *57against the plaintiff.
Tbe reply puts in issue the allegations of tbe counterclaim. On tbe trial there was no dispute about tbe justness of plaintiff’s account. Tbe suit was instituted tbe eighth day of March, 1898, and tried on tbe fourteenth day of April, 1900. Tbe finding was for tbe defendant for $55.38, the difference between tbe amount of plaintiff’s account and defendant’s counterclaim.
There was evidence tending to show that tbe agreement set up in defendant’s answer was entered into some time in tbe summer of 1892; that the plaintiff sold to Ridenour-Baker & Co., at Kansas City, Missouri, in 1895-6, certain of tbe goods mentioned upon which a twenty-five per cent commission would amount to $250; and that defendant exerted itself to sell plaintiff’s said goods in said territory. Tbe plaintiff introduced evidence tending to disprove defendant’s counterclaim. Tbe court, sitting as a jury, found that tbe defendant’s counterclaim bad been sustained. The only question before this court is: Was tbe trial court, under tbe pleadings and evidence, sustained by tbe law in its finding and judgment %
It is tbe contention of tbe plaintiff and appellant that defendant’s counterclaim is within tbe statute of frauds. Tbe defendant denies tbe contention; and further, asserts that if it was, that tbe plaintiff has waived tbe statute by not pleading it and by not objecting to the introduction of evidence in support of tbe counterclaim during the trial, having first raised tbe objection on its instruction asked of tbe court. Plaintiff asked tbe court to declare, as a matter of law, on tbe facts, that defendant’s counterclaim was within the statute of frauds, and again that said agreement set up in defendant’s answer, not being in writing, and no fixed period of time named for its duration, it could be annulled at any time at tbe will of either party; and, therefore, defendant could not recover. These *58declarations of law were refused by the court, which refusal is claimed as error.
In Van Idor v. Nelson, 60 Mo. App. 528, it was held: When the contract is not denied the statute must be specifically pleaded, but if the contract is denied, the statute may be invoked at the trial; but if not then invoked it will be waived, as it is an affirmative defense. And the court cites in support of its ruling the following cases, viz.: Marston v. Swett, 66 N. Y. 206; Bank v. Root, 4 Paige 481; Wildbahn v. Robidoux, 11 Mo. 659; Hook v. Turner, 22 Mo. 333; Allen v. Richard, 83 Mo. 55; Springer v. Kleinsorge, 83 Mo. 152. There seems to be uniformity in the Appellate and Supreme Courts upon this question. In Yeoman v. Mueller, 33 Mo. App. 347, which was a case originating before a justice of the peace, it was held that as the defense of the statute of frauds was not raised either by a defensive pleading, by objections to evidence, or by request for instruction in the trial court, it could not be raised for the first time on appeal. In Scharff v. Klein, 29 Mo. App. 549, the court held that under the general issue the defense of the statute of frauds could not be raised by instruction unless a foundation is first laid by an objection to the evidence. It has also been held in this State that if the statute of frauds is relied on as a defense it must be pleaded. Maybee v. Moore, 90 Mo. 340; Gardner v. Armstrong, 31 Mo. 535 ; and Sherwood v. Saxton, 63 Mo. 78. But, as stated, there seems now to be unanimity in holding to the rule that under the general issue the statute may be invoked by objections to the evidence, or by instructions. However, as we have seen in the case of Scharff v. Klein, supra, under some circumstances the statute can not be made available as a defense by instruction. There must be a foundation laid for the defense by objections to the evidence.
In the case at bar, when it was developed by the evidence *59that the plaintiff was seeking to recover on a contract within the statute, the defendant should have objected to the evidence, or upon the close of the plaintiff’s case have asked an instruction against the defendant’s right to recover. Not having.done either, but having introduced its evidence tending to disprove the case made by defendant to sustain its contract set up in the answer, plaintiff waived its defense of the statute of frauds. On the trial the defendant had rested its case upon the theory that no such contract existed, and it was too late to adopt another and different theory. Its defense of the statute of frauds was an affirmative defense, but its defense on the trial was a negative one: that is, that there was no such contract as alleged by the defendant.
We are of the opinion, however, that the contract in question is not within the statute of frauds, but that it amounts to a contract making the defendant the plaintiff’s agent for an indefinite length of time. No duration of the agency is fixed by the alleged contract, and as the agency is not coupled with an interest, it was revocable. The defendant had no interest in the goods to be sold, but had a commission for those sold. State ex rel. v. Walker, 88 Mo. 279, and.the authorities cited. An agent for an indefinite length of time, who has no interest in the subject-matter of his agency, can be discharged at any time. Boogher v. Life Ins. Co., 8 Mo. App. 533; Glover v. Henderson, 120 Mo. 367. But if the agent has in good faith incurred expenses and expended time and labor in the matter or agency, the principal will not be permitted to terminate it and appropriate the results of the agent’s services without compensating him therefor. Glover v. Henderson, supra; Boogher v. Life Ins. Co., supra; State ex rel. v. Walker, supra. The selling by plaintiff to others, of its goods within said territory, may be treated as an act of revocation of defendant’s agency, but it would not have the effect, under the foregoing *60authorities, or under any honest rule, to permit plaintiff to appropriate the result of the defendant’s services without compensation. This, from the record, seems to have been the view taken of the law of the case by the trial court, as shown by allowance of twenty-five per cent as commission to defendant for plaintiff’s sale of goods to Ridenour-Baker & Co.
The plaintiff contends that the finding of the court is not sustained by the facts, but an examination of the record does not support this contention for there was evidence which justified the finding. It is a rule that appellate courts will defer greatly to the findings of the trial judge, for the reason that his opportunities of weighing the testimony of witnesses and judging of their credibility are much better than those of the appellate judges.
The plaintiff further contends that as the defendant bought the bill of goods in suit with the intention of not paying for them, he thereby committed a fraud and should not be permitted to take advantage of his own wrong. The evidence does not show that the defendant company did not intend to pay for the goods when they were bought, but it shows that the goods were bought with the object of bringing the plaintiff to terms, viz.: of compelling plaintiff to credit the amount on defendant’s claim for damages.
Einding no error in the cause it is afiirmed.