home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 September
/
Chip_2002-09_cd1.bin
/
zkuste
/
delphi
/
kolekce
/
d56
/
XMLCOMP.ZIP
/
test
/
model
/
DnCountry.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
2002-06-16
|
719b
|
40 lines
unit DnCountry;
interface
uses
Classes, Contnrs;
type
TCountry = class(TComponent)
private
FCountryName: string;
published
property CountryName: string read FCountryName write FCountryName;
end;
TCountryList = class(TComponentList)
private
function GetCountry(aIndex: Integer): TCountry;
public
property Country[aIndex: Integer]: TCountry read GetCountry;
end;
implementation
{ TCountryList }
function TCountryList.GetCountry(aIndex: Integer): TCountry;
begin
Assert(Items[aIndex] is TCountry);
result := TCountry(Items[aIndex]);
end;
initialization
RegisterClasses([TCountry]);
finalization
UnregisterClasses([TCountry]);
end.