Kinook Software Forums

Kinook Software Forums (http://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (http://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Error expanding macros in property Message (http://www.kinook.com/Forum/showthread.php?t=591)

jan 10-11-2004 09:37 AM

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:

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

Thanks in advance,

Jan

kinook 10-11-2004 10:12 AM

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.


All times are GMT -5. The time now is 10:34 PM.


Copyright 1999-2019 Kinook Software, Inc.