GetSelectedAccount
Posted by Angham Al-Banawien, Last modified by Fouad Faraj Allah on 02 July 2019 06:17 PM

Syntax

Public Property Get GetSelectedAccount() As COAccount 

Description

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

Parameters

No parameters.

Return value

Returns object of type COAccount.

Sample

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))
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