Alert.SetCustomField Method
Sets the value of a user-defined custom field of an alert.
Alert.SetCustomField(FieldNumber Integer, FieldValue String)
Parameters
- FieldNumber
Specifies the number of the user-defined custom field to set. Possible values for the FieldNumber parameter are 1, 2, 3, 4, and 5 to set the first through fifth custom fields, respectively. - FieldValue
Specifies the value for the user-defined custom field of the alert.
Return Value
None
Examples
The following example shows how to store an array of values in the user-defined custom field of an alert.
Function StoreArrayInCustomField(objAlert, intField, arrValues)
Dim intIndex
Dim strFieldValue
For intIndex = LBound(arrValues) To UBound(arrValues)
' create a comma-separated string from the array
strFieldValue = strFieldValue & CStr(arrValues(intIndex)) & ","
Next
Call objAlert.SetCustomField(intField, strFieldValue)
StoreArrayInCustomField = strFieldValue
End Function
Requirements
Platforms: Requires Windows 2000 or later
Version: Requires MOM 2000 or later