RodrigoReboucas
08-25-2009, 03:02 PM
I have written a script to create "Make VS.NET" steps. I can set the "Filename" property through script but I can't set any of the other properties available inside a step such as "Build Behavior". How do I set through script the properties which the label inside the step has more than 1 word, it's a dropdown or a checkbox for example.
This is my code:
With CreateStep(vbldStepMain, "Make VS.NET", "Build " + appName , 1)
.Property("Filename") = strNextLine
.Property("Build behavior") = "Rebuild" ' this doesn't work
End With
Function CreateStep(typ, action, name, indent)
Set objStep = Application.Project.Steps(typ).Add(action)
objStep.Name = name
objStep.Indent = indent
Set CreateStep = objStep
End Function
Thanks!
This is my code:
With CreateStep(vbldStepMain, "Make VS.NET", "Build " + appName , 1)
.Property("Filename") = strNextLine
.Property("Build behavior") = "Rebuild" ' this doesn't work
End With
Function CreateStep(typ, action, name, indent)
Set objStep = Application.Project.Steps(typ).Add(action)
objStep.Name = name
objStep.Indent = indent
Set CreateStep = objStep
End Function
Thanks!