Скачиваний:
24
Добавлен:
01.05.2014
Размер:
979 б
Скачать
unit List;
interface
uses classes,WinTypes;
type
PAndList=^AList;
PMyList = ^AList;
AList=record
x:integer;
y:integer;
number:integer;
end;
ListP=class(Tlist)
protected
function GetPoint(index:integer):AList;
function GetPointAndr(index:integer;sp:Listp):AList;
public
property Points[index:integer]:AList read GetPoint;
property PointsAndr[index:integer;sp:Listp]:AList read GetPointAndr;
end;
var
MyList, MyList2, MyList3,UpList,AndrList,AndrDownList,AndrUpList: ListP;
Elem,Left,Right,ARecord,ARecord1,Arecord2:^Alist;
Implementation

function ListP.GetPoint(index:integer):AList;
begin
if index>count-1
then index:=index-count;
result:=AList(items[index]^);
end;
function ListP.GetPointAndr(index:integer;sp:Listp):AList;
begin
if index>sp.count-1
then index:=index-sp.count;
result:=AList(sp.items[index]^);
end;
end.


Соседние файлы в папке SOURCE
  • #
    01.05.20145.8 Кб24GEN.PAS
  • #
    01.05.201451 б24GEN.~ddp
  • #
    01.05.20147.88 Кб24GEN.~dfm
  • #
    01.05.20145.97 Кб24GEN.~PAS
  • #
    01.05.20141.78 Кб24LIST.DCU
  • #
    01.05.2014979 б24List.pas
  • #
    01.05.2014961 б24List.~pas
  • #
    01.05.201427.4 Кб25Main.dcu
  • #
    01.05.201451 б24Main.ddp
  • #
    01.05.201442.18 Кб24Main.dfm
  • #
    01.05.201426.03 Кб25Main.pas