home *** CD-ROM | disk | FTP | other *** search
- <<* SSB01.GEN *>>
- <<* (C) 1991 SHEN YANG WHITE HORSE SOFTWART COMPANY *>>
- <<#pragma
-
- <<* To generate Menu of a part with SSBMIS template *>>
- <<*---Declare global variables---*>>
- string fpath,fname,fext
- string prgpath,prgname,fileprefix,datafile,msetfilename
- string FuncStatus3,FuncStatus4
- logical Simple,Bracketed,LiteBar
- logical Fox
- logical ismultipage,ismultindx
-
- <<*---Used in several routines---*>>
- logical ismultials
- string fldprefix
-
- <<*---GENHUE vars---*>>
- integer lasthue,forecolor,backcolor
-
- #>>
- <<*---General modules---*>>
- <<#include 'GENSAY.INC'#>> <<*To generate @row,col SAY,etc.*>>
- <<#include 'GENHUE.INC'#>> <<*Contains AtrCode,etc.*>>
- <<#include 'GENFLD.INC'#>> <<*Contains GenLabel,GenField,etc.*>>
- <<#include 'GENVARS.INC'#>> <<*Contains fixfldnam,GenMemVars,etc.*>>
- <<#include 'GENFILE.INC'#>> <<*Contains GenHeader,GenFooter,etc.*>>
- <<#include 'GENCOLOR.INC'#>> <<*Contains GenColor*>>
- <<*---Specific modules---*>>
- <<#include 'SSBFILE.INC'#>> <<*General routines used by others*>>
- <<#include 'SSBFORM.INC'#>>
- <<#include 'SSBSAYS.INC'#>>
- <<#include 'SSBGETS.INC'#>> <<*WriteGetFlds,etc.*>>
- <<#include 'SSBREPL.INC'#>>
- <<#include 'SSBPROC.INC'#>>
- <<#include 'SSBKEYS.INC'#>>
- <<#include 'SSBCALC.INC'#>>
- <<#include 'SSBFIMA.INC'#>>
- <<#include 'SSBDRIV.INC'#>>
- <<#include 'SSBSTATI.INC'#>>
-
- <<#pragma
-
- procedure InitVariables
- begin
- select databases 1
- FuncStatus3 := substr( dbfusr,3,1 )
- FuncStatus4 := substr( dbfusr,4,1 )
- fldprefix := 'm'
- <<*---Init Product logical vars---*>>
- Fox := (ProductCode = 1)
- select all
- ismultipage := (pagtotal > 1)
- ismultials := (dbftotal > 1)
- ismultindx := false
- forall databases
- if ndxtotal > 1
- ismultindx := true
- endif
- endfor
- end <<*InitVariables*>>
-
-
- procedure InitFromStack
- begin
- <<*---Restore stack variables in REVERSE order---*>>
- pop( prgpath ) <<*Pathname of main program to generate*>>
- pop( prgname ) <<*Filename of main program to generate*>>
- pop( fileprefix ) <<*Seven letter file prefix*>>
- pop( datafile ) <<*filename of PRIMARY database file*>>
- zapstack <<*Clear it of anything else it might have*>>
- end <<*InitFromStack*>>
-
-
- begin <<*MAIN*>>
- InitFromStack
- InitVariables
- GenSBProcedures <<* Called SSBDRIV.INC *>>
- if (FuncStatus4 = 'T') or (FuncStatus4 = 't')
- SSBStatiBody
- endif
- end <<*MAIN*>>
-
- <<*EOF: SSB01.GEN*>>
- #>>