ON PETITION FOR REHEARING.
Scott, Justice.The plaintiff in error has filed her petition for a rehearing upon the ground that the defendants in error filed no *382cross-assignment of error to the overruling of their demurrer to the petition. It .is urged that in the absence of such cross-assignment the question of the sufficiency of the petition was not before the court. Taking that view, she submitted no oral argument thereon, nor did she refer to this question in her brief. The defendants in error called this court’s attention to the question and devoted a considerable part of their brief to its discussion.
The case is analogous to Fell v. Muller, 78 Ind., 507, in which it was said: “The real question for discussion in this case is: Did the appellant’s complaint state a cause of action in their favor against the appellee? If it did not state a valid or sufficient cause of action against the appellee, and we think it did not, then it is clear that the appellants were not harmed by any of the rulings of the trial court adverse to them and the judgment below must be affirmed.” In that case there was no assignment of cross error and the decision turned 'on the provisions of the civil code of that state to the effect that no judgment shall be reversed by reason of any error or defect in the/ proceedings which does not effect the substantial rights of the .adverse party. Sec. 3744, R. S. Wyo., 1899, is as follows: “No exception shall be regarded unless it is material and prejudicial to the substantial rights of the party excepting.” In order that the exception may be considered, it must be material to a substantial right. It is just as essential to show a substantial right either by the pleadings or the record as it is to preserve the exception. A failure to do either would furnish no basis for a review of an alleged error. That there is no substantial right upon the whole case may appear from the allegations of the petition, though where there has been a trial it is not generally so, and in most cases that question involves an .examination of the entire record. If the party complaining shows by his petition that no valid cause of action exists in his favor against the defendant, then he has failed to show a substantial right, and in such case any and all of his exceptions should be disregarded because *383harmless. It will be observed that the petition was not defective by reason of the absence of averment or want of allegation of an existing fact. The execution of the deed, its terms, the time aiid the purpose for which it was executed are alleged and taken in connection with the other allegations clearly set forth the claim of the plaintiff. She was bound by the allegations of her petition and nowhere, either in the record or by suggestion in the argument, does it appear, nor are we able to discover that any amendment could be made. The defect goes to the question as to whether she has any cause of action, or right to recover, upon a full and complete statement of all the facts. The error is fundamental in that it affirmatively appears that no allegation of an existing fact can be brought into the petition by way of amendment and thereby perfect it so that it would support a judgment in her favor. The error is not in failing to plead all the facts, but rested in an attempt to predicate a right of recovery upon a complete statement of facts when no such right exists. It is not the defective statement of a cause of action, but a showing of no cause of action. Such a petition can neither be cured by answer, verdict or judgment. (Giddings v. Baker, 2 O. St., 21.) This case is distinguishable from the Indiana cases (Anderson, &c., Assn. v. Thompson, 88 Ind., 405; Farmer’s Bank v. Orr, 25 Ind. App., 71, 89) cited by plaintiff in error in support of her petition. In those cases the defect did not consist in the absence of any cause of action, but did consist in the omission of a material' averment in the allegations of an existing cause of action. The theory of those cases is that by failing to demur or to assign cross error the pleadings were treated by the parties as being complete, and it was presumed that evidence was submitted and heard and findings made upon issues necessary to support a judgment even though there may have been an absence of averment of some material fact. (Secs. 471, 720, Elliott App. Proc.)
The defendants in error asked no affirmative relief — they had obtained a judgment in the court below with which *384they were satisfied. They sought neither to vacate nor modify it and did not assign the ruling on the demurrer as error prejudicial to them or at all. The finding and judgment being in their favor, the overruling of the demurrer was not available to them. (Blessing v. Blair, 45 Ind., 546; Rogers v. State, 99 Ind., 218; Reddick v. Keesling, 129 Ind., 128; 28 N. E., 316; Allen v. Berndt, 133 Ind., 355; 32 N. E., 1127; Thrash v. Starbuck, 145 Ind., 673; 44 N. E., 543; Levi v. Allen, 15 Ind. App., 38; 43 N. E., 571.) Nor was the decision based upon the exception to such ruling. The presumption of the correctness of the judgment was necessarily against the contention of the plaintiff in error and the burden was on her not only to show error upon the record (Sec. 4249, R. S. 1899), but that the error complained of was material and prejudicial to her substantial rights. (Sec. 3744, R. S. 1899.) In this jurisdiction a defendant in error has always been accorded the right, without assigning cross error, to direct our attention to different parts of the record presented for review to show that an alleged error was not prejudicial. All parts of the record so presented are accessible to the defendant in error for that purpose. 'When the complete record is before the court, as it was in this case, the justice of the rule is apparent. It is not within the power of the plaintiff in error to open the record at certain places to sustain his contention and close the balance to the defendant in error. The entire record was in the court for the benefit of the parties and the court. The pleadings constituted a part of the record of the case. (Sec. 1, Chap. 3, S. L. 1901.) If the erroneous admission of evidence may be shown to be without prejudice by consulting other parts of the bill, we see no reason why it could not also be shown by consulting the pleadings, for the latter are as much a part of the record as is the bill. The materiality of the evidence is determined by the issues, and when the petition affirmatively shows the non-existence of any legal cause of action there can be no issues of fact and no right of recover. Hence, the admission or rejection of any *385evidence would be harmless to the plaintiff. She had no standing in court and is, therefore, not in a position to allege or urge prejudicial error. When no affirmative relief is sought the defendant in error is not precluded from showing from the record the non-prejudicial character of the error complained of, and we hold that this rule is sufficiently broad to enable him, without assigning cross error, to urge that a full and complete statement of the facts as appears in the petition in this case constitutes an affirmative showing of no cause of action or right of recovery in the plaintiff, and that it would not for that reason support a judgment in her favor. It should be remembered that what is here stated and what we said in the opinion filed is directed and applies to the kind of a petition involved in this case, and we here express no opinion as to one which is defective merely by reason of the absence of averment.
The plaintiff in error has presented a brief upon her contention as to the construction which should be placed upon the documents construed together as the last will of the testator. We discussed the question in the opinion filed and after considering the authorities cited in her brief we find nothing in conflict with that opinion. We are still of the opinion that the reference in the codicil is not merely by date, but by other words which clearly indicate that it was the document executed on May 18, 1903, by itself which was within the contemplation of the testator. (McLeod v. McNabb, App. Cases (1891.) It may be conceded that when A. devises to B. and over to C., the latter upon the accrual of his right takes all of the property which B. would have taken under the will. By the codicil the testator substituted Reinsberg as devisee in case of his son’s death. It was evidently the intention of the testator to provide that the devise of his property as contained in his will should not lapse and as relating back and showing the extent of that devise the language used in the codicil is material. It is from the context of the will-and the codicil thereto that this question must be determined. It will be *386noticed that the codicil does not merely confirm the former devise and say that in the event of the death of the primary devisee then the property devised to the latter shall go to Reinsberg, but it goes further and designates the property devised over; it says that in that event all the real and personal property owned by testator at the time of his death shall go to Reinsberg, his heirs and assigns forever, unconditionally and without reserve. It -is unreasonable in the face of this language which discloses the evident purpose of testator to prevent a lapse of the previous devise to his son to say that such previous devise was less in its scope than the devise over. The language of the codicil as a whole shows that the testator must in confirming the provisions of his will have intended his confirmation of the devise to his son to be equally as broad as the devise over to Reinsberg. If title to the property described in the deed vested in petitioner, then no contingent interest therein vested at the same time in Reinsberg upon the death of the testator. The latter’s title was to accrue and vest upon a contingency disassociated with and antagonistic to the idea of the ownership of the property ever having passed to plaintiff in error. The title by devise to the property in controversy never vested in Reinsberg, nor could it except upon the hypothesis that the testator contemplated and by his codicil confirmed and ratified by itself the document which was executed on May 18, 1903. This intention of the testator is apparent and clearly appears from the codicil. It is not a case of latent ambiguity calling for parol testimony, nor is it so contended, and the question was one of construction to be determined and ascertained from the words and language used by the testator in these documents. (Secs. 956, 1025, 49, Cent. Digest.) The later codicil operated as a complete revocation of the former devise of the same property to the plaintiff in error regardless of whether the testamentary deed be construed as a codicil or treated as a will by itself. (1 Jarman on Wills, 171, 173; Rood on Wills, Sec. 336, and cases cited in sup*387port of the text; 1 Redfield on Wills, 350, 351, and cases there cited.) It does not appear that the conclusions reached in the opinion filed are in any wise erroneous or that any new questions are presented by the petitioner.
Rehearing denied.
Potter, C. J., and Beard, J., concur.