<% SELE * FROM Customer INTO CURSOR tCursor lcHTMLfile = 'custlist.htm' && html template lcHTMLout= FILETOSTR(oProp.HtmlPath+lcHTMLfile) %> <%=oHTML.htmlTable('customers',lcHTMLout,10,.T.,'#E5E5E5',.F.,VAL(oRequest.querystring("page")),oRequest.querystring("nav"))%>This is the simple change in the main case statement:
* mods RGJ ,accept existing .htm files CASE LEN(ALLTRIM(oProp.Action))>0 lcHTMLfile= oProp.HtmlPath + oProp.Action + '.htm' IF ! FILE(lcHTMLFile) lcHTMLfile = oProp.HtmlPath + 'default.htm' ENDIF lcHTMLout= FILETOSTR(lcHTMLfile) lcHTMLout= oHTML.mergeScript(lcHTMLout) && was mergetext OTHERWISEYou can imagine that in this situation nesting MergeScript in scripts would be very convenient.