home *** CD-ROM | disk | FTP | other *** search
- <<title 'Format File Generator'>>
- <<#
-
- <<*---Declare global variables---*>>
- string fpath,fname,fext
- string prgname,datafile
- string fldprefix
-
- <<*---GENHUE vars---*>>
- integer lasthue,forecolor,backcolor
-
- #>>
- <<*---General modules---*>>
- <<#include 'GENPRG.INC'#>> <<*Contains GetPrgName,etc.*>>
- <<#include 'GENSAY.INC'#>> <<*To generate @row,col SAY,etc.*>>
- <<#include 'GENBOX.INC'#>> <<*To generate boxes,etc.*>>
- <<#include 'GENHUE.INC'#>> <<*Contains AtrCode,etc.*>>
- <<#include 'GENFLD.INC'#>> <<*Contains GenLabel,GenField,etc.*>>
- <<#include 'GENFILE.INC'#>> <<*Contains GenHeader,GenFooter,etc.*>>
- <<*---Specific modules---*>>
- <<#include 'GENFMT.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 := GetPrgName( "Enter FILENAME of program to GENERATE" )
- if prgname
- InitGlobals
- GenFormat( prgname )
- endif
- else
- wait 'No FoxView Table is available '
- endif
- end <<*MAIN*>>
-
- <<*EOF: FORMAT.GEN*>>
- #>>