home *** CD-ROM | disk | FTP | other *** search
- unit ValueSubSet;
-
- interface
- uses uValues,
- Value;
- type TValueSubSet=class(TValues)
- protected
- fValues:TValues;
- fStart,fCount:Integer;
- function rdValues(No:integer):TValue;override;
- function rdCount:integer;override;
- public
- constructor Create(aValues:TValues;aStart,aCount:Integer);
- end;
- implementation
- function TValueSubSet.rdValues;
- begin
- Result:=fValues[No+fStart];
- end;
- constructor TValueSubSet.Create;
- begin
- Inherited Create;
- fValues:=aValues;
- fStart:=aStart;
- fCount:=aCount;
- end;
- function TValueSubSet.rdCount;
- begin
- Result:=fCount
- end;
-
- end.
-