UserData
Gets a reference to a dictionary that can be used to store user-definable (e.g. actual parameters) data for the current Standard Import Routine execution.
See also: SharedTempUserData, SharedUserData, TempUserData.
Compatibility
Available as of IDEA version 9.1.1
Remark
This collection is shared between all subtasks of a Standard Import Routine execution and is persisted at the end of a Standard Import Routine execution.
Syntax
UserData()
Example
Option Explicit
'UserData
'Gets/sets a reference to a dictionary that can be used to store user-definable data for the current CIR execution.
Sub Main()
Dim element As String
Dim text As String
Dim userdata As Object
Set userdata = SmartContext.UserData
element = "Key"
'Add
userdata.Add element, "Value"
'Contains
If userdata.Contains(element) Then
'Item
text = userdata.Item(element)
Else
text = "Not contained"
End If
MsgBox text
'Remove
userdata.Remove element
'Clear
userdata.Clear
End Sub