Navigation:  Object Model Reference > Builder Object >

ExpandMacros Method

Previous pageReturn to chapter overviewNext page

Expands macros in a string, logging any errors to the build output.

 

Syntax

 

builder.ExpandMacros(ByVal name As String, ByVal input As String, output As String, ByVal evalScript As Boolean = True) As Boolean

 

Arguments

 

builder

       Builder object

 

name

       Required.  The name of the property being expanded.  This will be logged with any error information.

 

input

       Required.  The string to expand macros and script in.

 

output

       Returned.  The string with any macros or script expanded.  The original string if no macros or script were found.

 

evalScript

       Optional  Whether to evaluate script in the expression surrounded by brackets.

 

Return value

       True if the value was successfully expanded or False if errors occurred.

 

See Also

 

Applies to Builder object