Category : Files from Magazines
Archive   : ITP9102.ZIP
Filename : NDX_TEST.PAS

 
Output of file : NDX_TEST.PAS contained in archive : ITP9102.ZIP
{$N+,E+}
PROGRAM NDX_Test;
USES NDX;

CONST
Count: Longint = 0;

VAR
N: _NDX;

{$F+} PROCEDURE ProcessNDXEntry
(VAR N: _NDX; VAR Entry: NDXentry); {$F-}
BEGIN
Write ('RecNo: ', Entry^.RecNo : 5, '; Key: ');
IF N.H.NumericKey THEN
WriteLn (Entry^.DoubleKey : 19 : 4)
ELSE
WriteLn (NDXgetKey (N, Entry));
Inc (Count);
END;

BEGIN {NDX_Test}

{ To run rename one of your index files to MyIndex.NDX or
use one of the two index files--MyIndex1.NDX or MyIndex2.NDX
we've provided in the ARC file. }

NDXopen (N, 'MyIndex.NDX');
NDXtraverse (N, ProcessNDXEntry);
NDXclose (N);

WriteLn (Count, ' records processed.');
END. {NDX_Test}


  3 Responses to “Category : Files from Magazines
Archive   : ITP9102.ZIP
Filename : NDX_TEST.PAS

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/