about mergescript

Topics: Developer Forum, Project Management Forum, User Forum
Oct 11, 2007 at 2:30 AM
there is code in mergescript method:
the code is required?
in fact ,i want display "<%,","%>" and so on in page.

Oct 12, 2007 at 12:07 AM
I'm pretty sure that line is only for when FrontPage translated the standard delimeters to it's own coding. The purpose was to allow AVFP coding in the WYSIWIG editor as well as the raw HTML. So I think you would be safe in commenting it out..
Oct 12, 2007 at 1:50 AM
thanks ,i commented the code,avfp run fine,i get what i want.

in addition, i find a bug(i think),in the mergescript method,the variables oCodeBlock not be defined as private,so the mergescript method can't "nesting merge",fox example follow mergetext:

functioin functioina()
ohtml.mergescript(other mergetext)
if merge the mergertext1,the finally result will be the functioina's result.

change the code " PRIVATE cEval" to "PRIVATE cEval,oCodeBlock,lcStr,lcExec" ,mergescript will support nesting.

thirdly,in vfp9 ,execscript() can't supersede codeblock if mergetext include "text to "