Knowledgebase:
UpdateAccount
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 05 February 2018 01:55 PM

Syntax

 Public Function UpdateAccount (ByRef AccountID As Integer, ByRef AccountType As VertexGeneral.AccountTypeEnum, ByRef OpenTime As String, ByRef IsDemo As Boolean, ByRef IsLocked As Boolean, ByRef IsLiquidated As Boolean, ByRef IsMarginAcc As Boolean) As CallingResultsEnum

This function is used to modify the given account with new data. After UpdateAccount method executes the UpdateAccountRecieved event fires.

Parameters

Parameter Description 
AccountID Account number to be updated, value of type Integer
AccountType The Account type (Demo, Normal or Coverage), value of type AccountTypeEnum
OpenTime Account opened time, value of type String
IsDemo To determine if account will be demo or not, value of type Boolean
IsLocked If true the account will be locked, value of type Boolean
IsLiquidated To determine if the account will be liquidated when reaching the liquidation point, value of type Boolean
IsMarginAcc To determine if it is margin account or not, value of type Boolean

Return value

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

Sample

 Private Sub UpdateAccount_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles UpdateAccount.Click

  'BOAPI is a predefined variable as CVertexFXBOAPI10

   Dim Result as CallingResultsEnum
   Dim vAccount As COAccount
   Dim vClient As COClient
   vClient = m_oBOAPI.ClientByIndex(1)
   vAccount = m_oBOAPI.AccountByIndex(vClient.ClientID,1)

   Result= BOAPI.UpdateAccount(vAccount.AccountID,AccountTypeEnum.DemoAccountType,"28/1/2015 01:00:00", True, False, False, False)

   Msgbox (Result)

 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