home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 February
/
Chip_2000-02_cd.bin
/
zkuste
/
Delphi
/
navody
/
tt
/
objvm.exe
/
UNITS
/
LangValueList.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1998-03-06
|
1KB
|
52 lines
unit LangValueList;
interface
uses
LangValue,ObjList;
type TLangValueList=class
protected
fItems:TObjList;
function rdItems(No:Integer):ILangValue;
public
constructor Create;
destructor Destroy;override;
property Items[No:Integer]:ILangValue read rdItems;default;
procedure Add(a:ILangValue);
function Count:integer;
procedure Remove(No:Integer);
procedure Delete(No:Integer);
end;
implementation
constructor TLangValueList.Create;
begin
Inherited Create;
fItems:=TObjList.Create;
end;
destructor TLangValueList.Destroy;
begin
fItems.Free;
inherited Destroy;
end;
procedure TLangValueList.Add;
begin
fItems.Add(a);
end;
function TLangValueList.Count;
begin
Result:=fItems.Count;
end;
function TLangValueList.rdItems;
begin
Result:=fItems.Obj[No] as ILangValue;
end;
procedure TLangValueList.Remove;
begin
fItems.Remove(No);
end;
procedure TLangValueList.Delete;
begin
fItems.Delete(No);
end;
end.