home *** CD-ROM | disk | FTP | other *** search
-
- program ldb3;
- uses bind;
-
-
- type
-
- YourRecPtr = ^YourRec;
- YourRec = record
- name : ^string;
- end;
-
-
- procedure display(D, M, A : pointer); far;
- begin
- writeln(YourRecPtr(D)^.name^)
- end;
-
- const
- s : string = 'Pat Programmer';
-
-
- var
- B : CopyBinder;
- R : YourRec;
- i : word;
-
- begin
- B.Init(sizeof(YourRec));
-
-
- R.name := @s;
-
- for i := 1 to 10 do
- B.ins(@R);
-
- B.forEach(display,nil,nil);
-
- B.allDel;
-
- B.Done;
-
- readln
-
- end.
-
-
-