home *** CD-ROM | disk | FTP | other *** search
- <<#pragma
-
- <<*---Declare global variables---*>>
- string fpath,fname,fext
- string prgpath,prgname,fileprefix,datafile,pathfileprefix,prgmainname
- logical Simple,Bracketed,LiteBar
- logical Fox
- logical ismultipage,ismultials,ismultindx
- integer menutype
-
- <<*---OPEN vars---*>>
- integer SCREENWIDTH
-
- <<*---GENVARS vars---*>>
- string fldprefix
-
- <<*---FEATURE vars---*>>
- integer features
- integer featals,featlabel
-
-
- function feat( num : integer ) : logical
- <<*16-bit feature combinations (1...16)*>>
- <<*bits: 1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,-32768*>>
- begin
- RETURN (features and num) <> 0
- end feat
-
- #>>
- <<*---General modules---*>>
- <<#include 'GENSAY.INC'#>> <<*To generate @row,col SAY,etc.*>>
- <<#include 'GENSTR.INC'#>> <<*General string functions*>>
- <<#include 'GENVARS.INC'#>> <<*Contains fixfldnam,GenMemVars,etc.*>>
- <<#include 'GENPRG.INC'#>> <<*To generate @row,col SAY,etc.*>>
- <<#include 'GENFILE.INC'#>> <<*Contains GenHeader,GenFooter,etc.*>>
- <<#include 'GENCOLOR.INC'#>> <<*Contains GenColor,etc.*>>
- <<*---Application---*>>
- <<*include 'SSBPRIV.INC'*>>
- <<#include 'SSBMAIN.INC'#>>
- <<#include 'SSBINST.INC'#>>
- <<#include 'SSBMCRT.INC'#>>
- <<#include 'SSBSUB1.INC'#>>
- <<#include 'SSBSUB2.INC'#>>
- <<#pragma
-
-
- procedure GenMainPrg
- begin
- <<* 'prgname' includes PATHNAME *>>
- prgmainname := pathfileprefix + '0000.PRG'
- if OpenFile( prgmainname,'MAIN program be generated SSBMIS Template' )
- SSBMISMainBody
- GenFooter( prgmainname )
- end
- end <<*GenMainPrg*>>
-
-
- procedure GenPrograms
- string fspec,filename
- begin
- filename := 'SBDATA.MEM'
- fspec := pathfileprefix + '0001.PRG'
- if OpenFile( fspec,'INST program for ' + filename )
- GenSBINSTBody
- GenFooter( fspec )
- end
- filename := 'Screen was initialized'
- fspec := pathfileprefix + '0002.PRG'
- if OpenFile( fspec,'MCRT program for ' + filename )
- GenSBMCRTBody
- GenFooter( fspec )
- end
- filename := 'Business was selected'
- fspec := pathfileprefix + '0003.PRG'
- if OpenFile( fspec,'SUB1 program for ' + filename )
- GenSBSUB1Body
- GenFooter( fspec )
- end
- filename := 'Procedure was selected'
- fspec := pathfileprefix + '0004.PRG'
- if OpenFile( fspec,'SUB2 program for ' + filename )
- GenSBSUB2Body
- GenFooter( fspec )
- end
- end <<*GenPrograms*>>
-
-
- procedure InitVariables
- begin
- filespec( prgname,fpath,fname,fext )
- fileprefix := substr( fname,1,4)
- <<*1st three letters as prefix*>>
- pathfileprefix := prgpath + fileprefix
- end <<*InitVariables*>>
-
-
- begin <<*MAIN*>>
- prgname := Table
- if prgname
- InitVariables
- GenMainPrg
- GenPrograms
- endif
- end
-
- <<*EOF: SSBMIS.GEN*>>
- #>>