Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-11-2004, 08:37 AM
jan jan is online now
Registered User
 
Join Date: 08-09-2004
Posts: 1
Error expanding macros in property Message

Hi,

I have a step in my build script that sends an email. The message body of the email comes from a (dynamic) html file. I include it in this way:

[vbld_FSO.OpenTextFile("%TEMP_LOG%").ReadAll()]

Sometimes (I suspect when % signs are being used within the dynamic file) the following error occurs:

Error expanding macros in property Message: <Error parsing macros: Unrecoverable Parse Error at position 2859 - expecting percent_sign>

Could it be that the loaded content is being parsed? If yes, how can I prevent this parsing from happening?

Thanks in advance,

Jan
Reply With Quote
  #2  
Old 10-11-2004, 09:12 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
Yes, any percent (%) or square bracket ([]) chars in a step field are interpreted as macro/script markers. Use

[vbld_GetFileContents("%TEMP_LOG%")]

instead, which will double up these characters in the specified file so they will be treated as literals by VBP.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 01:07 PM.


Copyright © 1999-2023 Kinook Software, Inc.