Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 27 August 2020 09:52 AM


 ReadOnly Property AccountByIndex(ByRef ClientID As Integer, ByRef Index As Integer) As COAccount


This property is used to return an object of type COAccount that belongs to the given account index in the parent tree. 


Parameter Description 
ClientID Client number which the account belongs to, the value of type is Integer
Index Account location in the parent tree, the value of type is Integer


 Private Sub AccountByIndex_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AccountByIndex.Click
   'API is perdefined variable as CVertexFXClientAPI

       Dim vAccount As COAccount
       Dim vClient As COClient
       vClient = API.ClientByIndex(1)
          vAccount = API.AccountByIndex(vClient.ClientID,1)
          Msgbox("Account ID " & vAccount.AccountID & "First name " & vAccount.FirstName )

 End Sub 

See Also

VertexFX Client 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