
402 S.E.2d 866 (1991)
Carolyn M. CARDWELL and Thomas V. Cardwell, Petitioners,
v.
The TOWN OF MADISON BOARD OF ADJUSTMENT, Respondent.
No. 9017SC401.
Court of Appeals of North Carolina.
April 16, 1991.
*867 Stern, Graham & Klepfer by Jerry R. Everhardt and J. Bradley Purcell, Greensboro, for petitioners-appellees.
Wolfe and Collins, P.A. by John G. Wolfe, III and Michael R. Bennett, Kernersville, for respondent-appellant.
*868 EAGLES, Judge.
After a careful review of the record, we conclude that the Town of Madison Board of Adjustment considered the definition of "building" found in the state building code when interpreting its zoning ordinance. We agree with the Superior Court that the Board's decision was based on an error of law. Accordingly, we affirm the judgment of the Superior Court.
In proceedings to review a city's zoning decision, the task of the appellate courts includes "reviewing the record for errors in law" and "insuring that decisions of town boards are supported by competent, material and substantial evidence in the whole record." Coastal Ready-Mix Concrete Co. v. Board of Commissioners, 299 N.C. 620, 626, 265 S.E.2d 379, 383 (1980). When reviewing the sufficiency and competency of the evidence to support the action of the town board, the question before us is whether the evidence before the town board was sufficient. The question is not whether the evidence before the Superior Court supported that court's order. Id.
Here, the record supports the conclusion that the Board relied on the state building code in making its decision. At the public hearing, the zoning enforcement officer testified that his decision was based on § 402.1(b) of the state building code. He provided each of the board members with a copy of this state building code provision.
During the hearing, one of the Board members asked whether it was "customary practice" to use definitions from the state building code to interpret local zoning ordinances. The zoning enforcement officer replied:
I'd say probably the majority of the zoning enforcement officers in this state are tied in with the state building code or state Department of Insurance as part of their legal background of going to school. Most of them comes [sic] out of the building inspections field. So, I feel like it's natural to use what resources you have to find an interpretation on the definition of anything.
Near the end of the hearing the same Board member observed that article 4 of the town zoning ordinance defines certain words and terms and provides that terms not otherwise defined "shall have their customary dictionary definition." He also asked again whether it was customary to use a definition from the state building code to define a word in a local zoning ordinance. The zoning enforcement officer reassured the Board that it was correct to consider the state building code. He said:
As far as I know, all the building inspectors that I know that deals [sic] with zoning in the same wayin the same situation I'm in will use both of them to determine different things, as far as the definitions go. And I didn't make this decision as being two separate buildings without doing some telephone calling, too. So I've called the County and I've calledalso called the Department of Insurance in Raleigh on this.
At the end of the hearing, the Board chairman summarized the contentions of the zoning officer and referred specifically to the state building code. He did not mention the definition of building in the town zoning ordinance. Additionally, when the Board voted on whether to uphold the zoning officer's decision, the motion was phrased as follows: "I hereby will make the motion to uphold the decision of the zoning officer, based on the present existence of a fire wall, the construction thereof effectively and legally creating two buildings." The town zoning ordinance does not mention the term "fire wall." Rather, it is the state building code that provides that "each part of a building or structure included within fire walls shall be considered a separate building."
Similarly, in its order the Board made only a finding to "uphold the decision of the Zoning Officer based on the present existence of a fire wall structure thereof effectively and legally creating two buildings." No where in its order does the Board make any findings with regard to the definition of "building" as defined in *869 the zoning ordinance. We hold that the Board erroneously considered the state building code definition of "building" as the basis for its decision.
Appellant next contends that the evidence and the findings of fact do not support the conclusion that the Board's decision was based on an error of law. We disagree. Here, the town zoning ordinance defines the term "building." When the legislature defines a word used in a statute, "that statutory definition controls the interpretation of that statute." Pelham Realty Corp. v. Board of Transportation, 303 N.C. 424, 434, 279 S.E.2d 826, 832 (1981). The same principle applies when construing a zoning ordinance. Additionally, nothing in the record indicates that the town zoning ordinance explicitly adopts the state building code by reference. Even if the zoning ordinance did not define "building," we find it unlikely that the state building code's definition of "building" is applicable. The building code concerns construction while the zoning ordinance is directed to land use.
Accordingly, we conclude that the record supports the conclusion that the Town Board erroneously considered the state building code and failed to rely on the town zoning ordinance in deciding to uphold the decision of the zoning enforcement officer. For the reasons stated, the decision of the superior court is affirmed.
Affirmed.
ARNOLD and PARKER, JJ., concur.
