home *** CD-ROM | disk | FTP | other *** search
- USES CRT,IOSTUFF,DIR;
-
- VAR
-
- Menu1 : String[80];
- InKey: Char;
- Temp : AnyStr;
-
- BEGIN
- SetColor(LightGray,Black);
- ClrScr;
- WriteSt('The ShowDir Procedure prints a directory of files ',5,5);
- WriteSt('on the screen. The ChangPath Procedure allow the user',5,6);
- WriteSt('to change the path. Hit any key to continue. ',5,7);
- InKey := ReadKey;
-
- Repeat
- ShowDir; { Display a directory for current path }
- ChangePath; { Allows user to change path }
- WriteSt('Do ShowDir/ChangePath again?',1,25);
- InKey := ReadKey;
- Until InKey in ['n','N'];
-
- ClrScr;
- WriteSt('The PickFile Function allows the user to pick a file',5,5);
- WriteSt('using a point and shoot lotus-like menu. The user ',5,6);
- WriteSt('can change the path by hitting F2. The file name ',5,7);
- WriteSt('is returned and the path remains changed so that the',5,8);
- WriteSt('file may be opened by Reset. Hit any key to proceed.',5,9);
- InKey := ReadKey;
-
- Repeat
- Temp := Pickfile; {Pick a file}
- If Temp <> '' then WriteSt('File '+Temp+' selected.',1,24)
- else WriteSt('No File selected.',1,24);
- WriteSt('Do PickFile again?',1,25);Clreol;
- InKey := ReadKey;
- Until InKey in ['n','N'];
-
- End.