VBP gets a bit bent and twisted if you expand macros containing line ends because it tries to parse the expanded text and fails.
Use [vbld_AllMacros().Item("LASTSTEP_OUTPUT").Value] to insert the text instead.
I encounter this problem so much that I have a JScript function to do the job:
function GetStr (macroName)
{
var macro = Application.FindMacro (macroName);
if (macro == null)
return "";
return Application.ExpandMacros (macro);
}
so I would use [GetStr ("LASTSTEP_OUTPUT")].
|