Knowledgebase:
AccountByIndex
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 25 October 2017 12:09 PM

Syntax

 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. 

Parameters

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

Sample

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