Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Treeview details from Type Array Recursive

Status
Not open for further replies.

suoirotciv

Programmer
Dec 3, 2002
205
PH
I would really appreciate if some can help on my problem. And please bear with my explanation.

I have an array that holds 2 data (actually 3, but Level is for tracking only), one is the Manager and the other is the Agent. But that agent can also be under the Manager have agents under it. Its like a networking system. So I don't know how deep my treeview will look like.

Example:
MANAGER > AGENT
Username1 > Username2
Username2 > Username3
Username3 > Username4
. . . etc

I need to show this record in my treeview as follows
Username1
> Username2
> Username3
> Username4
Username2
> Username3
> Username4
Username3
> Username4

Code:
Option Explicit
   Private Type Agent
      AgentID As String
      NetworkLevel  As Long
      IncentiveAmount As Currency
   End Type
   Private Type Level
      Level As String
      Agent() As Agent
   End Type
   Private Type Manager
      ManagerName As String
      Level() As Level
   End Type
   Dim Manager() As Manager

========================================
I kept my Job because of TEK-TIPS
Thanks a lot to all who keeps on helping others.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top