RemoveTag
Unassigns the tag from table field
Compatibility
Available as of IDEA version 12.0
Syntax
RemoveTag(tagId As String, fieldName As String) As Boolean
Parameters
tagId
Tag ID (case insensitive).
fieldName
Name of table field (case insensitive).
Return Value
True, if the specified tag was successfully unassigned from the table field.
False, because the specified tag was not assigned to the database field.
If no field with given name exists, an exception is thrown.
Remarks
In order to persist the method’s result, Save() method has to be called.
Example
Sub Main()
Dim ac As Object
Dim tagging As Object
Set ac = CreateObject("SmartAnalyzer.AutomationClient")
Set tagging = ac.GetTagging("Sample-Weblog")
wasRemoved = Tagging.RemoveTag("CustomerCode", "DURATION")
IF wasRemoved = True THEN
MsgBox "Tag 'CustomerCode' was unassigned for field 'DURATION'"
ELSE
MsgBox "Tag 'CustomerCode' was NOT unassigned for field 'DURATION'"
END IF
Tagging.Save
on error Resume next
wasRemoved = Tagging.RemoveTag("CustomerCode", "INVALID_FIELD_NAME")
MsgBox "Error: " + CStr(Err.Number) + "'; Desc: '" + Err.Description & "'"
End Sub