home *** CD-ROM | disk | FTP | other *** search
- uses
- crt, dos,
- eco_node, eco_lib
-
- ;
-
-
- const
- recompile : boolean = false;
-
- var
- nodelist : nodelistobj;
- nodel,
- nodepath,
- st, st1 : string;
- srec : searchrec;
- i : word;
-
-
-
- begin
- writeln('FindNode -- find a 3D node in the nodelist (/c recompiles)');
- nodepath := __normfil(__backapp(getenv('nodelist')));
- findfirst(nodepath + 'nodelist.*', anyfile, srec);
- nodel := __normfil(nodepath + srec.name);
- __cls; gotoxy(1, 14);
- writeln('Nodelist found: ' + __slashfil(nodel));
- recompile := __inparams('/c', i);
- st := paramstr(1);
- with nodelist do begin
- init(nodel, recompile); { do not compile index }
- if recompile then halt(1);
- repeat
- if st <> '' then begin
- starttimer(2);
- st1 := getnode(st);
- if st1 = '' then writeln('Not found!') else writeln(st1);
- writeln('Found in: ', getlaptime(2));
- end;
- readln(st);
- until st = '';
- done(false); { keep index }
- end;
- end.
-