CasewareDocs

RemoveHistory

Removes all history entries.

Compatibility

Available as of IDEA version 9.0

Syntax

RemoveHistory(ideaTableName as String)

Parameter

ideaTableName

Name of the IDEA database for which the history will be deleted.

Remark

An error is raised if the database is not found or if the parameter is space or null.

Example

Dim HistoryCleaner As Object 
Dim fileName As String
Dim oMC As Object

Sub Main
'Get the name of the database.
fileName = SmartContext.PrimaryInputFile

Set oMC = SmartContext.MacroCommands
Set ProtectIP = SmartContext.MacroCommands.ProtectIP

'Remove all history entries of the given database
ProtectIP.RemoveHistory fileName

'Release object.
Set ProtectIP = Nothing
Set oMC = Nothing
End Sub