CasewareDocs

Clear

Removes all values from the list.

Compatibility

Available as of IDEA version 9.1.1

Syntax

Clear()

Example

Option Explicit

'Pre-Macros

Sub Main()

'Gets/sets the base folder (i.e. the folder that contains the data files referenced in indexXml).
SmartContext.BaseFolder = "D:\examples"
MsgBox SmartContext.BaseFolder
'Gets/sets the name of the index.xml file that describes the data package to be imported.
SmartContext.IndexXml = "D:\examples\index.xml"
MsgBox SmartContext.IndexXml
'Gets a reference to an object that manages the list of replace-values for parameterized search patterns.
'Add a search pattern to the list
SmartContext.ReplaceValues.Add "000"
'Count search patterns
MsgBox SmartContext.ReplaceValues.Count
'Clear the entire list of search patterns
SmartContext.ReplaceValues.Clear
'Count search patterns
MsgBox SmartContext.ReplaceValues.Count 'Executes the import right after the pre-macro execution. SmartContext.TriggerImport = True

End Sub