IEstimate.MakeVersionActive Method
Sub MakeVersionActive( _
ByVal versionToActivate As Integer, _
Optional ByVal closingComment As String = "", _
Optional ByVal openingComment As String = "", _
Optional ByVal saveBoQ As Boolean = True, _
Optional ByVal saveWordTemplates As Boolean = False _
)
This language is not supported or no code example is available.
Parameters
- versionToActivate
- int
The version number to be made active. The current version has always number 0. Older versions are numbered from the lowest number (usually 1) for the oldest one. Newer versions have higher number.
- closingComment
- string
The closing comment of the previous version/progress.
- openingComment
- string
The opening comment of the new version.
- saveBoQ
- bool
Optional. Default true. If set to true, then the BoQ if any will be copied to the old version ; otherwise, the BoQ of the current version will be used for all versions/progresses.
- saveWordTemplates
- bool
Optional. Default is false. If set to true, then Word templates if any will be copied to the old version; otherwise, the Word templates of the current version will be used for all versions/progresses.
Exception type | Condition |
---|---|
A problem occurred. |
No user events are fired.
You can get the available estimate version numbers from EstimateVersions property.