If I have an associative array as follows:
bookkeeping(EXAM1) := 'Inventory';
bookkeeping(EXAM2) := 'Accounts receivable';
bookkeeping(EXAM3) := 'Inventory';
bookkeeping(EXAM4) := 'Property, plant and equipment';
bookkeeping(EXAM5) := 'Assets';
bookkeeping(EXAM6) := 'Accounts receivable';
bookkeeping(EXAM7) := 'Liabilities;
Is there a way to count the values by looping through the associative array keys?
I want to do something like:
Inventory 2
Accounts receivable 2
Property, plant and equipment 1
Assets 1
Liabilities 1
getjbb
bookkeeping(EXAM1) := 'Inventory';
bookkeeping(EXAM2) := 'Accounts receivable';
bookkeeping(EXAM3) := 'Inventory';
bookkeeping(EXAM4) := 'Property, plant and equipment';
bookkeeping(EXAM5) := 'Assets';
bookkeeping(EXAM6) := 'Accounts receivable';
bookkeeping(EXAM7) := 'Liabilities;
Is there a way to count the values by looping through the associative array keys?
I want to do something like:
Inventory 2
Accounts receivable 2
Property, plant and equipment 1
Assets 1
Liabilities 1
getjbb