>if not empty(cJoinCondition) > cSQL = cSQl + cJoinCondition >endif >but I can work around this.
*** ClassLib BaseApp : class LocalView : Method CreateSQL #INCLUDE IT.H local ; cViewName,; cFieldSection,; cJoinSection,; cSelectSQL,; cParentTable this.cDoing = "Creating View : " + proper(this.cViewName) *** following suggusted by Al Doman UT #018083 *** previously built a single macro expansion cParentTable = this.cParentTable cViewName = this.cViewName cFieldSection = this.cFieldSection cJoinSection = this.cJoinSection cSelectSQL = iif(empty(this.cSelectSQL),""," where " + this.cSelectSQL) cOrderBy = iif(empty(this.cOrderBy),""," order by " + this.cOrderBy) Create SQL view &cViewName ; as select &cFieldSection ; from &cParentTable ; &cJoinSection ; &cSelectSQL ; &cOrderBy *** Class Error Method puts error message in this.cDoing return this.cDoing = "Creating View : " + this.cViewNameOnce again I thank Al & Nancy for their help