#1
|
|||
|
|||
Writing macro to file without evaluation
I have a macro and I set the option "Don't expand Macros or scripts..." Its actually the contents of a file I want to write out, I was using the File Write action and at the time its writing it starts to evaluate the macro, how can I prevent that.
|
#2
|
|||
|
|||
You can't prevent expansion of macros/scripts within a Write File action. Either escape the file contents when storing in the macro (you can use the Read File action or vbld_GetFileContents script function) or use a Run Script action to write the raw macro value (you can use the FileSystemObject).
|
#3
|
|||
|
|||
how do I write out a macro in a script so its not evaluated? Is there a speciific function to write this marco and not evaluate it?
|
#5
|
|||
|
|||
So I guess my concern was around vbld_AllMacros()("ABC").Value, isn't there a function that will write out a macro value with out evaluation of the macro.
|
#6
|
|||
|
|||
The Value property is the raw macro value. Within a step field, any script or macro references in the text will automatically be expanded. In script code, you can use Step.ExpProperty, vbld_StepProp, or Application.ExpandMacrosAndScript to expand any macros or script in the value.
|
#7
|
|||
|
|||
Cool thanks for the help
|
|
|