Syntax
ReadOnly Property Get GetSelectedAccount() As COAccount
Description
This property is used to return an object of type COAccount for the account that had been selected before.
Parameters
No parameter
Return value
Return object of type COAccount.
Sample
Public WithEvents BOAPI as new CVertexFXBOAPI
public function GetAccount() as Integer
Dim Result As CallingResultsEnum
Dim vClient as COClient
Dim vAccount as COAccount
vClient = BOAPI.ClientByIndex(1)
If not vClient is nothing then
vAccount = BOAPI.AccountByIndex(vClient.ClientID,1)
If not vAccount is nothing then
Result = BOAPI.SelectAccount (vAccount.AccountID)
return result
End if
end if
End function
Private Sub BOAPI_OpenPositionsLoaded()
Dim vAccount As COAccount
vAccount = BOAPI.GetSelectedAccount()
if not vAccount is nothing then
msgbox ( “AccountID for the selected account ” & vAccount.AccountID)
end if
End sub
See Also
VertexFX Backoffice API Index
|