|
#1
|
|||
|
|||
When I add the action manually to the script it creates these setting looking at the source of the script, if I do it progamaitcially these items are omitted. How can I add them even if there the default settings?
|
#2
|
|||
|
|||
so I updated it to the following and it seems to be ok
Set objStep = objApp.Project.Steps(vbldStepMain).Add("Subroutine Call", iNewIndex + 1) objStep.Name = "TEMP New Shares Add" objStep.Indent = 2 objStep.Checked = True objStep.Property("SubName") = "SUB TEMP New Shares Add" objStep.Property("Expand") = CBool(-1) objStep.Property("buildfailsteps") = CBool(0) objApp.Project.Save is this correct? |
#3
|
|||
|
|||
Yes, or
objStep.Property("Expand") = True objStep.Property("buildfailsteps") = False I should have also mentioned that the default for buildfailsteps is -1 (True) and Expand is 0 (False). |
#4
|
|||
|
|||
Thanks,
I first tried to use true and false but the type was wrong in the final file, using the CBool set the correct type to '11' |
|
|