Database
Attaches an IDEA database to check tag existence.
Compatibility
Available as of IDEA version 9.0
Syntax
Database
Remark
An error is raised if database is null or empty.
Example
Dim Tags As Object
Dim db As Object
Dim fileName As String
Sub Main
'Open the database.
fileName = SmartContext.PrimaryInputfile
Set db = Client.OpenDatabase(fileName)
Set Tags = SmartContext.MacroCommands.TagManagement.CheckTagExistence
'Attach an IDEA database to check tag existence object.
Set Tags.Database = db
'Populate the existing and missing tags collections.
Tags.Add "Tag1"'Check for tag with ID "Tag1"
Tags.Add "Tag2" 'Check for tag with ID "Tag2"
Tags.PerformTask
...
...
'Close the database
db.close
Set db = Nothing
'Release object
Set Tags = Nothing
End Sub