Syntax
Public Function GetAccountStatement(AccountID As Integer, StatementType As StatementTypeEnum, Optional FromDate As String = "", Optional ToDate As String = "") As CallingResultsEnum
Description
This function is used to get the statement report for the given account id at a specific period , After GetAccountStatement method executes the AccountStatementsResultReceivd event fires.
Parameters
Parameter |
Description |
AccountID |
Account number to get Statement report for. Value of type Integer |
StatementType |
The type of the statement report which is required to retrieve , It can be one of the StatementTypeEnum. |
FromDate |
Specify duration
Date format : “DD/MM/YYYY HH:NN:SS”
“” : Means from beginning |
ToDate |
Specify duration
Date format : “DD/MM/YYYY HH:NN:SS”
“” : Means till now |
Return value
Returns value of type CallingResultsEnum , If the request was sent to server successfully it will return SuccessResult.
Sample
Public WithEvents API As CVertexFXClientAPI
PrivateSub GetAccountStatement_Click (ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles GetAccountStatement.Click
Dim Result as CallingResultsEnum
Dim vClient As COClient = API.ClientByIndex (1)
Dim account As COAccount = API.AccountByIndex (vClinet.ClientID, 1)
Result = API.GetAccountStatement (vAccount.AccountID, StatementTypeEnum.AccountSummaryStatement ,””,””)
End Sub
See Also
VertexFX Client API Index
|