home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
CLIPPER
/
PKB
/
MAKEZIP.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-01-30
|
3KB
|
63 lines
/*┌──────────────────────────────────────────────────────────────────────┐
▌│ │
▌│ Program Name: MAKEZIP.H Copyright: Gallagher Computing Corp. │
▌│ Date Created: 01/30/93 Language: Clipper 5.0 │
▌│ Time Created: 16:45:29 Author: Kevin S Gallagher │
▌│ c:/brief/clipper.src │
▌└──────────────────────────────────────────────────────────────────────┘
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ */
#include "fileio.ch"
#include "inkey.ch"
//─── for replacement MENU TO in NANFOR.LIB
#include "ftmenuto.ch"
//─── undefine to keep old comment and listfile - default is to erase them!
#define KILL_UM
#define NANNY
#undef K_SPACE
#define K_SPACE 32
#define aBlock { |x,y | x[1] < y[1] }
#define bBlock { | x | WriteIt( x[1] ) }
#define cBlock { | v | AEVAL( ASORT( DIRECTORY("*."+v),,,aBlock),bBlock) }
#define dBlock { | v | WriteIt( v ) }
#define sBlock { | x | VAL(SUBSTR(x,1,2)) == nParm }
#define MR MAXROW()
#define MC MAXCOL()
#define PKZ "PKZIP "
#define PKF "PKZIP -f "
#define INIFILE "INVENT.INI"
#define ZIPFILE "INVENT.ZIP"
#define C_FILE "COMMENT.TXT"
#define BOXTYPE {"╔═╗║╝═╚║ ","┌─┐│┘─└│ ","╒═╕│╛═╘│ ","╓─╖║╜─╙║ ","█▀███▄██ "}
#xtranslate LSTRINT( <n> ) => LTRIM(STR(INT( <n> ) ) )
#xtranslate AKILL( <a>, <e> ) => ASIZE( ADEL( <a>, <e> ), LEN( <a> ) - 1 )
#xcommand FWriteLine( <h>, <s> ) => FWrite( <h>, <s> + CHR(13) + CHR(10) )
#xcommand STABILIZE <x> => DISPBEGIN();;
WHILE !(<x>:stabilize());;
END;;
DISPEND()
#xcommand EASYMENU [ <var> ] ;
[ FILE <cFile> ] ;
[ BOXFRAME <nBoxType> ] ;
[ BOXCOLOR <cBoxColor> ] ;
[ TEXTCOLOR <cTextColor> ] ;
[ TBCOLOR <cColors> ] ;
[ BUTONCOLOR <cButtColor>] ;
[ USESHADOW <lShadow> ] ;
[ SHADCOLOR <nShadColor> ] ;
=> ;
[<var> :=] TBMenu(<cFile>, ;
<nBoxType>, ;
<cBoxColor>, ;
<cTextColor>, ;
<cColors>, ;
<cButtColor>, ;
<lShadow>, ;
<nShadColor> )