 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Willy Hoel Guest
|
Posted: Wed Nov 12, 2003 10:19 am Post subject: How can I sort TCollectionItems in a TCollection |
|
|
Anyone who knows how I can sort a TCollection based on multiple values
in CollectionItems?
My Collection is declared like this:
public
Accounts: TAccounts ;
end;
TAccountType = (atSales,atCash,atOther,atDecimalRounding);
TAccountItem = class(TCollectionItem)
public
AccountType : TAccountType ;
fAmount :Double;
fExVatAmount : Double;
fAccount:String;
fAccountName: String ;
fVatCode:Char;
fDepartment: Integer ;
end;
TAccounts = class(TCollection)
public
procedure AddToAccount(Amount,EksVatAmount:Double;Account,AccountName:String;VatCode:Char;AccountType:TAccountType;
AccountDep: Integer);
end;
How can I sort the Collection based on the values in fAccount combined
with fDepartment?
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|