View Single Post
  #2  
Old 02-10-2004, 04:34 PM
pjaquiery pjaquiery is online now
Registered User
 
Join Date: 01-19-2003
Location: Dunedin, New Zealand
Posts: 114
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")].
Reply With Quote