IDVBCMCampaignEdit::newbatch

Note:

There is not an equivalent Info method.

Method Signatures

 

C\C++

HRESULT get_NewBatch(

BSTR bstrBatchID,

long lWait,

LPVARIANT vBatchEdit)

VB

Public Property Get NewBatch(

ByVal bstrBatchID As String,

ByVal lWait As Long) As Variant

Returns the edit batch object for a specific batch

Return Values

S_OK - success

else - failed

Memory Allocation

The caller is responsible for releasing its reference to the vBatchEdit object.

Visual Basic Usage Example

Private Sub Button1_Click()
    Dim objCampaignEdit As DVBCMCampaignEdit
    Dim objBatchEdit As DVBCMBatchEdit
    Dim strCampaign As String
    Dim strBatchID As String
    GetCampaignID(strCampaign)
    GetBatchIDInCampaign(strCampaign, strBatchID)
    GetCampaignEditObject(objCampaignEdit)
    objBatchEdit = objCampaignEdit.NewBatch(strBatchID)
End Sub

Parameter Name

Purpose

bstrBatchID

Batch ID of the new batch edit object.

lWait

Optional. Default = 30000. Time to wait for a server resource in milliseconds.

vBatchEdit

The new batch edit object