Home Forums General XMetaL Discussion Common Macro Reply To: Common Macro

Derek Read

Reply to: Common Macro

Just in case it helps, another thing you can do is to put your common code in a third file (the file extension doesn't matter in this case but you might use .js) and use JScript's eval statement together with Application.FileToString() to pull JScript code in at runtime in the two files that will be compiled into the MCR.

The two JScript files that will compile into your separate MCR files would then contain code similar to this:

var strMyJScript = Application.FileToString("path to file.js");
eval(strMyJScript);

Reply

Products
Downloads
Support