DeleteSLTPOrder
Posted by Mohammad Rahhal, Last modified by Fouad Faraj Allah on 01 July 2019 09:02 PM

Syntax

Public Function DeleteSLTPOrder(ByRef OrderID As String, ByRef TransTag As String) As CallingResultsEnum

Description

This function deletes an SL/TP orderAfter this method executes the DeleteSLTPOrderResult event fires.Note that you must select an account using SelectAccount method before calling DeleteSLTPOrder.

Parameters

Part Description 
OrderID  Order number to be deleted , value of type String 
TransTag String value to mark deleted SLTP order when the result came from server

Return value

Returns value of type CallingResultsEnum.If the request sent to the server successfully it will return SuccessResult.

Sample

Private Sub Btn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btn.Click
  Dim result As VertexFXClientAPI10.CallingResultsEnum

  'API is a predefined variable as CVertexFXClientAPI10

  Dim Order As COOrder = API.OrderByIndex(1)
   
  Dim OrderID As String = Order.OrderID 
  
  result = API.DeleteSLTPOrder(OrderID, "SLTP Order number" & OrderID &" is deleted")

  MsgBox(result.Tostring)

End Sub


See Also



VertexFX Client API Index

(1 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions