home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 February
/
Chip_2000-02_cd.bin
/
zkuste
/
Delphi
/
navody
/
tt
/
objvm.exe
/
UNITS
/
ValueSet.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1998-02-19
|
1KB
|
44 lines
unit ValueSet;
interface
uses uValues,
Value,Classes;
type TValueSet=class(TValues)
protected
fValues:TList;
function rdValues(No:integer):TValue;override;
function rdCount:integer;override;
public
procedure Add(a:TValue);override;
constructor Create;
destructor Destroy;override;
procedure Clear;override;
end;
implementation
function TValueSet.rdValues;
begin
result:=fValues[No];
end;
function TValueSet.rdCount;
begin
Result:=fValues.COunt;
end;
procedure TValueSet.Add;
begin
fValues.Add(a);
end;
constructor TValueSet.Create;
begin
Inherited Create;
fValues:=TList.Create;
end;
destructor TValueSet.Destroy;
begin
fValues.Free;
Inherited Destroy;
end;
procedure TValueSet.Clear;
begin
fValues.Clear;
end;
end.