dissenting:
I disagree with the majority’s conclusion that the trial court ruled on any ground for dismissal asserted by the Garbades in their motion to dismiss other than that which has been properly preserved for appeal. The court clearly granted the motion to dismiss pursuant to Rule 12(b)(6), for failure of the second amended complaint to state facts sufficient to constitute a cause of action. The reason given by the trial judge at the conclusion of the hearing was that the complaint failed to allege the Attorneys held an interest in the property as tenants in common. No other basis was stated by the court. Therefore, the court held an action for partition could not be maintained.
Although the attorneys for the parties recited the factual history and acquainted the judge with all of the bases advanced for dismissal, the record does not contain any affidavits or other evidence submitted for consideration of matters outside of the pleadings. The record further reveals that the court came to the conclusion a co-tenancy was required before *192counsel completed argument on the other issues. The record clearly reflects the court’s basis for dismissal:
THE COURT: Your claiming that you have an undivided interest as a tenant in common with others in a 206 acre tract of property, that you are a titled owner. Where is your title?
MR. JOHNSON: We have the equitable title only, your honor.
THE COURT: Okay. Denied. Dismissed. You’re out.
MR. BARNES: Your granting my—
THE COURT: I grant your motion. Not in a partition suit, I don’t believe.
MR. BARNES: And it is my understanding that this ends this particular complaint against all—
THE COURT: If it is a partition suit. That’s a partition suit. I assume that’s all we’re talking about. That’s what I wanted to be sure was specifically you were seeking to partition real property.
MR. JOHNSON: That is correct.
THE COURT: I’m denying the partition. I am granting your 12-B-6 (sic) as to the partition suit because they’re not a tenant in common. (Emphasis added)
The court’s ruling foreclosed further argument on the issues the majority now advances as unappealed grounds for the dismissal. The court then instructed counsel for Garbade to prepare a written order, which was later submitted and signed.
The subsequent written order simply recited the procedural history and stated:
“Having heard counsel for Defendant and counsel for Plaintiffs it is hereby ORDERED, ADJUDGED, AND DECREED that the Defendants’ 12(b)(6) Motions be granted and that the amended Complaint be, and it hereby is, dismissed with prejudice.”
The Attorneys filed a motion to reconsider pursuant to Rule 59, SCRCP, asking the court to allow them to amend their complaint in lieu of dismissal, or to amend the order of dismissal to be without prejudice. This motion was denied, without elaboration.
*193Clearly an issue of this nature must be preserved before it may be addressed on appeal. However, as we have often instructed the trial bench and bar, “all that this Court has ever required is that the questions presented for its decision must first have been fairly and properly raised in the lower court and passed upon by that Court.” Hubbard v. Rowe, 192 S.C. 12, 19, 5 S.E.2d 187, 189 (1939). Where, as here, the trial court succinctly states the sole basis for its ruling at the conclusion of the hearing, and the subsequent written order recites only the procedural history and the action taken by the court, i.e. dismissal, the written order adds nothing of substance to the court’s reasoning or grounds for dismissal.
If the basis for the ruling is unclear, I agree with placing the burden on the losing side to ask the court for clarification. But in my opinion a fair reading of the record in this case supports only one conclusion; that is, that the issue of co-tenancy interest as a prerequisite to maintaining an action for partition of real property has been fairly raised and ruled upon as the only basis for dismissal.
At the very least, the court’s subsequent written order is ambiguous. If so, then the same conclusion is mandated under our case law. “[I]n construing an ambiguous order ..., the determinative factor is to ascertain the intent of the judge who wrote the order.” Eddins v. Eddins, 304 S.C. 133, 135, 403 S.E.2d 164, 166 (Ct.App.1991) (citation omitted); see also Kumar v. Third Generation, Inc., 324 S.C. 284, 485 S.E.2d 626 (Ct.App.1995). There can be no question as to the intent of the trial judge when the record so clearly states the grounds upon which the dismissal is granted. To hold otherwise places form over substance, and renders error preservation a minefield through which only the lucky and the divine can successfully pass.
Having concluded the issue is preserved, I agree with the trial court in the determination that the Attorneys were not entitled to maintain an action for partition of property as alleged, because they did not claim an interest as co-tenants.
South Carolina Code Ann. § 15-61-10 (1976) reads as follows:
All joint tenants and tenants in common who hold, jointly or in common, for a term of life or years or of whom one has *194an estate for a term of life or years with the other that has an estate of inheritance or freehold in any lands, tenements or hereditaments shall be compellable to make severance and partition of all such lands, tenements and hereditaments.
Thus, if the complaint does not allege facts sufficient to assert a claim as a co-tenant, there is no factual basis to support a claim for partition.
Pleadings are to be liberally construed “to do substantial justice to all parties.” Rule 8(f), SCRCP; Hughes v. Water World Water Slide, Inc., 314 S.C. 211, 442 S.E.2d 584 (1994). Liberally construing the amended complaint, the Attorneys alleged a 50% equitable interest in the Garbades’ real property. The second amended complaint requests that the court determine the interests of the respective parties in the “premises”, and then grant partition. Though the allegations of the amended complaint allege an “equitable ownership” in the property, there is no underlying factual basis for an assertion of an interest in the property as co-tenants. Consequently, I believe the trial court was correct in dismissing the second amended complaint under Rule 12(b)(6). See Brown v. Leverette, 291 S.C. 364, 366, 353 S.E.2d 697, 698 (1987).
However, I would hold the court erred when it dismissed the complaint with prejudice. Sealy v. Dodge, 289 S.C. 543, 544, 347 S.E.2d 504, 505 (1986) (“[Dismissal ... does not bar a subsequent action brought before expiration of the statute of limitations if the dismissal is based merely on the insufficiency of the complaint.”); cf. Owens v. Atlantic Coast Lumber Corp., 108 S.C. 258, 94 S.E. 15 (1917) (dismissal is proper and will bar another action if the complaint affirmatively shows that the plaintiff is not entitled to relief).
The other defenses asserted by the Garbades as a basis to dismiss in the court below and as additional sustaining grounds on appeal are the statute of frauds, incapacity to contract, and expiration of the statute of limitations. Analysis of these issues requires consideration of facts outside of the well-pleaded allegations in the complaint. Consequently, dismissal with prejudice under Rule 12(b)(6) would not have been proper. See Broum, 291 S.C. at 366, 353 S.E.2d at 698 (“The trial court must dispose of a motion for failure to state a cause *195of action based solely upon the allegations set forth on the face of the complaint.”) (citations omitted).
In the hearing on the motion to dismiss, the attorneys for the parties elaborated on the underlying factual basis for the complaint in explanation of the asserted grounds for dismissal. However, no stipulation of fact was made, no affidavit or other evidence was submitted, and the transcript does not indicate that the court converted the motion into a motion for summary judgment, as contemplated by Rule 56, SCRCP. See Cobb v. Benjamin, 325 S.C. 573, 482 S.E.2d 589 (Ct.App.1997) (where there is no stipulation, a representation of fact by counsel in written briefs, memoranda or made during oral argument, may not be considered by the court where it is unsupported by the record); see also Brown, 291 S.C. at 367, 353 S.E.2d at 698-99 (“[T]he trial court may treat a 12(b)(6) motion as a motion for summary judgment and consider matters presented outside of the pleadings if the parties are afforded a reasonable opportunity to respond to such matters in accordance with Rule 56(c) and (e) of the South Carolina Rules of Civil Procedure.”). For this reason, consideration of these asserted facts by the court would be premature.
Because I conclude the trial court properly dismissed the complaint, but erred in dismissing it with prejudice, I would rule that the order dismissing the complaint must be modified to state that it is without prejudice. Accordingly, I respectfully dissent.