home *** CD-ROM | disk | FTP | other *** search
- <<* SIMPLE.GEN *>>
- <<title "Simple Database Application">>
- <<string fmain,fproc>>
- <<integer errnum>>
-
- <<#include 'SIMUTIL.INC'#>> <<*Routines used by SIMPROC*>>
- <<#include 'SIMPROC.INC'#>> <<*Procedure file*>>
- <<#include 'SIMMAIN.INC'#>> <<*Main program file*>>
-
- <<#pragma
-
- function GetPrgName( prompt : string ) : string
- string fspec,fpath,fname,fext
- begin
- input prompt to fspec
- if fspec
- filespec( fspec,fpath,fname,fext )
- fspec := fpath + fname + '.PRG' <<*Force a '.PRG' extension*>>
- endif
- RETURN fspec
- end <<*GetPrgName*>>
-
-
- begin <<*MAIN*>>
- if table
- fmain := GetPrgName( "Enter FILENAME of program to GENERATE" )
- fproc := GetPrgName( "Enter FILENAME of procedure file to GENERATE" )
- if fmain and fproc
- errnum := rewrite( fmain )
- if errnum = 0
- ProgramBody( fproc )
- errnum := rewrite( fproc )
- if errnum = 0
- ProcedureBody
- endif
- endif
- wait
- endif
- else
- wait "No FoxView Table is available "
- endif
- end <<*MAIN*>>
- #>>
-
- <<* EOF: SIMPLE.GEN *>>