Set method

For each named parameter set by the client, the Set method will be called. This way, the task is provided with the values that the user set via VBScript.

Syntax
			Private Sub IAMTask_Set(ByVal ParameterName As String, ByVal Value As Variant)
Parameters
NameDescription
ParameterName

The parameter name

Value

The parameter value

Remarks

Following is the default implementation of the Set method.

The Task Project template defines two parameters, which will be stored in global variables to make them available from the Execute method. These parameters should be edited to match the needs of the custom task extension.

' Define variables to hold the parameter values passed to the 'Set' function.
Dim m_argA As String
Dim m_argB As String

Private Sub IAMTask_Set(ByVal ParameterName As String, ByVal Value As Variant) ' Sample code... Select Case ParameterName Case "A" m_argA = Value Case "B" m_argB = Value Case Else Err.Raise -1, TaskName, "Invalid Parameter Name." End Select End Sub

Execute method