Posted by Angham Al-Banawien, Last modified by Angham Al-Banawien on 11 December 2017 01:56 PM


Public Property Get GetSelectedAccount() As COAccount 

This property is used to get value of parent ID as integer.


No parameters.

Return value

Returns object of type COAccount.


 Private WithEvents API as new CVertexFXClientAPI

public function GetSelected() as Integer
    Dim Result As CallingResultsEnum
    Dim vClient as COClient
      Dim vAccount as COAccount

    vClient = API.ClientByIndex(1)
    If not vClient is nothing  then

          vAccount = API.AccountByIndex(vClient.ClientID,1)

           If not vAccount is nothing then

                 Result = API.SelectAccount (vAccount.AccountID)
                return result
          End if
   end  if
End function 

Private Sub API_OpenPositionsLoaded() 

     Dim vAccount  As COAccount 

     vAccount = API.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))
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