Public Function ManualDeleteSLTPOrder(AccountID As Integer, OrderIDs As String, Optional TransTag As String = "") As CallingResultsEnum
This function is used to delete a managed order without the need to select an account. After ManualDeleteSLTPOrder method executes the DeleteSLTPOrderResult event fires.
|AccountID||Account number to delete the managed order for, value of type is Integer|
|OrderID||Order number to be deleted, value of type is Integer|
|TransTag||String value to mark SLTP order as deleted when the result comes from server|
Returns value of type CallingResultsEnum. If the request was sent to server successfully it will return SuccessResult
Private Sub DeleteSLTP_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DeleteSLTP.Click BOAPI is predefined variable as CVertexBOAPI Dim Result as CallingResultsEnum Dim vOrder as COOrder Dim vAccount as COAccount vAccount = BOAPI.AccountByIndex (1) vOrder = BOAPI.OrderByIndex (1) Result = BOAPI.ManualdeleteSLTPOrder(vAccount.AccountID,vOrder.OrderID,Delete SLTP by BOAPI) Msgbox (Result.ToString) End sub
Leave A Comment