home *** CD-ROM | disk | FTP | other *** search
- <<* SSBPRIN.GEN *>>
- <<* (C) 1991 SHEN YANG WHITE HORSE SOFTWART COMPANY *>>
-
- <<title 'Output table File Generator'>>
- <<#
- <<*---Declare global variables---*>>
- string fspec,fpath,fname,fext
- string prgname,datafile
- string fldprefix,fileprefix
-
- <<*---GENHUE vars---*>>
- integer lasthue,forecolor,backcolor
-
- #>>
- <<*---General modules---*>>
- <<*include 'GENPRG.INC'*>> <<*Contains GetPrgName,etc.*>>
- <<*include 'GENFLD.INC'*>> <<*Contains GenLabel,GenField,etc.*>>
- <<#include 'GENFILE.INC'#>> <<*Contains GenHeader,GenFooter,etc.*>>
- <<*---Specific modules---*>>
- <<#include 'GENPRINT.INC'#>>
- <<#
-
- procedure InitGlobals
- begin
- select all
- select database 1
- filespec( dbfnam,fpath,datafile,fext ) <<*Init 'datafile'*>>
- fldprefix := 'm'
- end <<*InitGlobals*>>
-
- begin <<*MAIN*>>
- if Table
- prgname :=Table
- InitGlobals
- filespec( prgname,fpath,fname,fext )
- fileprefix := substr( fname,1,7 )
- fspec := fileprefix + '5.PRG'
- if OpenFile(fspec,'Print Table File')
- ssbprintfmt
- GenFooter(fspec)
- endif
- else
- wait 'No Date File is available '
- endif
- end <<*MAIN*>>
-
- <<*EOF: FORMAT.GEN*>>
- #>>
-