DeleteOpenPosition
Posted by Mohammad Rahhal, Last modified by Laith Ghawi on 01 July 2019 12:41 PM

Syntax

 Public Function DeleteOpenPosition(Ticket As Integer, AccountID As Integer) As CallingResultsEnum

Description

This function is used to delete an existing position. After DeleteOpenPosition method is executed, the DeleteOpenPositionResult event will fire.

Parameters

Parameter Description 
Ticket Position ticket number to be Deleted, value of type is Integer
AccountID Account number that want to delete its open position, value of type is Integer

Return value

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

Sample

 Private Sub DeletePos_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DeletePos_Click

   ‘BOAPI is predefined variable as CVertexBOAPI 

   Dim Result as CallingResultsEnum
   Dim vpos as COOpenposition
   Dim vAccount as COAccount
   vAccount = BOAPI.AccountByIndex (1) 
   vpos= BOAPI.OpenPositionByIndex (1)
   Result = BOAPI.DeleteOpenPosition (vpos.Ticket , vAccount.AccountID)
   Msgbox (Result.ToString) 

 End sub ​

See Also


VertexFX Backoffice API Index

(0 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