Скачиваний:
18
Добавлен:
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 Кб18GEN.PAS
  • #
    01.05.201451 б18GEN.~ddp
  • #
    01.05.20147.88 Кб18GEN.~dfm
  • #
    01.05.20145.97 Кб18GEN.~PAS
  • #
    01.05.20141.78 Кб18LIST.DCU
  • #
    01.05.2014979 б18List.pas
  • #
    01.05.2014961 б18List.~pas
  • #
    01.05.201427.4 Кб19Main.dcu
  • #
    01.05.201451 б18Main.ddp
  • #
    01.05.201442.18 Кб18Main.dfm
  • #
    01.05.201426.03 Кб19Main.pas