Knowledgebase:
GetSelectedAccount
Posted by Angham Al-Banawien, Last modified by Angham Al-Banawien on 02 July 2018 03:17 PM

Syntax

ReadOnly Property Get GetSelectedAccount() As COAccount  

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

(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