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