home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
clarion
/
tools.zip
/
TOOLS.COM
/
COMPRESS.PRG
< prev
next >
Wrap
Text File
|
1988-11-02
|
2KB
|
45 lines
COMPRESS PROCEDURE(FILEIN)
!---------------------------------------------------------------------!
! THIS PROCEDURE WILL PACK A CLARION FILE AND CHECK FOR ERRORS, !
! IF A ERROR IS FOUND A MESSAGE IS SENT TO THE SCREEN. !
! !
! TO CALL THIS PROCEDURE. !
! !
! COMPRESS(FILEIN) !
! !
! WHERE: !
! !
! FILEIN = THE NAME OF THE CLARION FILE. !
!---------------------------------------------------------------------!
! COMPILER: CLARION V2.0 !
! SYSTEM: N/A !
! PROCEDURE: COMPRESS !
! ENVIRONMENT: CALLED HAS A PROCEDURE !
! REFERENCES: CLARION FILE !
!---------------------------------------------------------------------!
! HISTORY: !
! WRITTEN 10/20/88 BY DOMINICK G. GALLUCCI !
! MODIFIED 00/00/00 !
!---------------------------------------------------------------------!
COMPACTING SCREEN WINDOW(25,80),AT(1,1),PRE(SOR),HUE(7,0,0)
ROW(6,6) STRING('Packing File:')
ROW(8,24) STRING('*{5} Please Wait *{5}'),ENH,BLK
FILENAME ROW(6,19) STRING(30)
.
FILEIN EXTERNAL,FILE
CODE
ALERT !CLEAR ALL ALERT KEY'S
OPEN(COMPACTING)
SOR:FILENAME = NAME(FILEIN) !DISPLAY FILE NAME
PACK(FILEIN) !PACK THE FILE
CLOSE(COMPACTING)
IF ERROR() THEN
STOP('PACKING-' & NAME(FILEIN) & ' ' & ERRORCODE() & '-' & ERROR())
. !END IF
CLOSE(FILEIN)
RETURN