home *** CD-ROM | disk | FTP | other *** search
- {$R-} {Range checking off}
- {$B+} {Boolean complete evaluation on}
- {$S+} {Stack checking on}
- {$I+} {I/O checking on}
- {$N-} {No numeric coprocessor}
- {$M 65500,16384,655360} {Turbo 3 default stack and heap}
-
-
- PROGRAM first;
- {$V-} {Disables Length Checks for Strings. Mandatory for SCL}
-
- Uses
- Crt,
- printer,
- Dos,
- scl;
-
- var x:string;
-
- PROCEDURE handle_first; {This Procedure handles format 'first'}
- BEGIN;
- Select_Format('first'); {Loads the format from disk}
- Display_Format(0,0); {Displays it in the upper left corner of the Screen.}
- REPEAT
- Handle_Format; {Complete Loop to handle format input}
- UNTIL Format_Done; {Either completely filled in or abort pressed}
- x:=g_cont(7);
- write(lst,x);
- END;
-
-
- BEGIN; {of main}
- Select_Format_File('sample1'); {initializes SCL and loads the format
- {file 'Sample1'}
- handle_first; {load,display and handle the format}
- Close_Formats; {terminate SCL}
- END. {of main}