home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / tot5.zip / DEMBR4.PAS < prev    next >
Pascal/Delphi Source File  |  1991-02-11  |  645b  |  32 lines

  1. Program DemoBrowseArray;
  2.  
  3. Uses DOS,CRT,
  4.      totFAST, totINPUT, totLINK, totLIST, totSTR;
  5. const
  6.    DefaultFile = 'c:\autoexec.bat';
  7. var
  8.    BWin: BrowseFileOBJ;
  9.    RetCode: integer;
  10.    Filename: string;
  11.  
  12. begin
  13.    Screen.Clear(white,'░'); {paint the screen}
  14.    if ParamCount = 0 then
  15.       FileName := DefaultFile
  16.    else
  17.       FileName := ParamStr(1);
  18.    with BWin do
  19.    begin
  20.       Init;
  21.       Retcode := AssignFile(Filename);
  22.       if Retcode in [0,2] then
  23.          Go
  24.       else
  25.       begin
  26.          Writeln('Unable to find file: ',Filename,'.');
  27.          Key.DelayKey(2000);
  28.       end;
  29.       Done;
  30.    end;
  31. end.
  32.