Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Kasim
  Where is Kasim?
 Hyderabad
 India
 Kasim
 Tags
Subject: Treeview Control
Thread ID: 232973 Message ID: 232973 # Views: 57 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Active X Controls & OLE Automation
Date: Sunday, June 28, 2009 4:26:28 PM         
   


Hi all,

Can anybody help me ? I want to generate hierarchical representation of Account Groups in the activex treeview control.

I have a table Gtree.dbf (attached herewith) in which account groups data has stored which is having the following structure :

Gcode N(5) && unique code of group
Parent Logical && TRUE if it is a parent group
Gname C(40) && group name
Under_Grp N(5) && value of sub-parent group
Atlast N(5) && value of ultimate parent group

I want Output like this in the treeview control :
==============================================
BRANCH/DIVISIONS
CAPITAL ACCOUNT
-- RESERVES & SURPLUS
-- SUB CAPITAL A/C
CURRENT ASSETS
-- BANK ACCOUNTS
-- CASH-IN-HAND
-- LOANS & ADVANCES (ASSETS)
-- SECURITIES & DEPOSITS (ASSETS)
-- STOCK-IN-HAND
-- SUNDRY DEBITORS
CURRENT LIABILITIES
-- DUTIES & TAXES
-- PROVISIONS/EXPENSES PAYABLE
-- SUNDRY CREDITORS
---- INTERNATIONAL CREDITORS
-------- US CREDITORS
FIXED ASSETS
INVESTMENTS
LOANS (LIABILITY)
-- BANK CC/OD ACCOUNTS
-- SECURED LOANS
-- UNSECURE LOANS
PRE-OPERATIVE EXPENSES (ASSETS)
PROFIT & LOSS ACCOUNT
REVENUE ACCOUNTS
-- EXPENSES (DIRECT)
-- EXPENSES (INDIRECT/ADMN.)
-- INCOME (DIRECT)
-- INCOME (INDIRECT)
-- PURCHASE ACCOUNT
-- SALES ACCOUNT
SUSPENSE ACCOUNT
==============================================

I am very thankful if somebody write source for me.

Kasim



http://www.foxite.com/uploads/5582c310-0805-4543-8f20-3e1a1a0655d6.zip



COMPLETE THREAD
Treeview Control Posted by Kasim @ 6/28/2009 4:26:28 PM
RE: Treeview Control Posted by Marcia Akins @ 6/28/2009 4:37:18 PM
RE: Treeview Control Posted by Glen Villar @ 6/28/2009 5:02:57 PM
RE: Treeview Control Posted by Kasim @ 6/28/2009 7:16:44 PM
RE: Treeview Control Posted by Boudewijn Lutgerink @ 6/29/2009 9:51:45 AM