Knowledgebase: > Data Types
Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 25 August 2020 10:12 AM


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


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


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. 


 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))
Not helpful

Comments (0)
Post a new comment
Full Name:
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