Add Method (PICampaignDB object)

               

 

The Add method adds a PICampaign object to the server associated with this PICampaignDB object and returns the newly created PICampaign object.

 

Syntax

object.Add strCampaignID, StartTime, [EndTime]

The Add method syntax has these parts:

Part

Description

object

An object expression that evaluates to a PICampaignDB object.

strCampaignID

A string containing the ID of new PICampaign

StartTime

A VARIANT representing the start time of the campaign. See Settings below.

EndTime

A VARIANT representing end time of campaign. [Optional] See Settings below.

 

Settings

The possible values in the variant for StartTime and EndTime are:

Setting

Description

VT_BSTR

A Variant containing a time/date string (currently in Microsoft formats)

VT_DATE

A Variant containing a DATE representing a local date on the current system

VT_R4,VT_R8,VT_I2, VT_I4

A Variant containing a number representing seconds since 1970 UTC.

VT_DISPATCH, VT_UNKNOWN

A Variant containing a reference to a PITime object

 

 

Enabling Operational Intelligence