I'm not sure if I've reported this before but it caught me out today when I was doing some EFS stuff. Perhaps someone else that is familiar with this can expand on this.
If you have "main()" (without the quotes) in a comment in the top of the EFS file it causes errors elsewhere in the EFS.
Here is an example:
Take out the comments at the top and the function doesn't generate an error.
The problem is "main()" - if it's up against the left margin then it seems okay but anywhere else it causes a problem.
Insights welcome...
If you have "main()" (without the quotes) in a comment in the top of the EFS file it causes errors elsewhere in the EFS.
Here is an example:
PHP Code:
/*
put text here and then the main() word
*/
function preMain() {
_init = true;
var x=0;
aFPArray[x] = new FunctionParameter( "p1", FunctionParameter.STRING);
with( aFPArray[x++] ) {
addOption("PS_SOLID");
addOption("PS_DOT");
addOption("PS_DASH");
addOption("PS_DASHDOT");
addOption("PS_DASHDOTDOT");
setDefault( "PS_DASH" );
}
}
var aFPArray = new Array();
var _init;
function main(p1) {
if(_init) {
setDefaultBarStyle(eval(p1), 0);
_init = false;
}
return;
}
The problem is "main()" - if it's up against the left margin then it seems okay but anywhere else it causes a problem.
Insights welcome...
Comment