home *** CD-ROM | disk | FTP | other *** search
- <<* APPPRIV.INC *>>
-
- <<#
- procedure GenMemStore( stotyp,stostr : string )
- begin
- select all fields
- select fields on (fldtyp = stotyp) and (fldals = 'M') and fldget
- if fldtotal > 0
- GenFldList( stostr )
- endif
- end GenMemStore
-
-
- procedure GenFldStore( stotyp,stostr : string )
- begin
- select all fields
- select fields on (fldtyp = stotyp) and (fldals <> 'M') and fldget
- if fldtotal > 0
- GenFldList( stostr )
- endif
- end GenFldStore
-
-
- procedure GenPrivateFlds( switch : integer )
- begin
- select all
- select fields on (fldtyp $ 'CDLN') and (fldals <> 'M') and fldget
- if (fldtotal > 128)
- genln( '* ---Declare field memory variables.' )
- genln( 'DO CASE' )
- forall databases
- filespec( dbfnam,fpath,fname,fext )
- genln( 'CASE dbfarea = "',dbfcount,'"' )
- pushmargin( 1 )
- genln( '* ---Using ',fname,'.',fext )
- if fldtotal > 0
- if switch = 0
- GenFldList( 'PRIVATE;' )
- GenFldStore( 'C','STORE " " TO;' )
- GenFldStore( 'N','STORE 0.00 TO;' )
- GenFldStore( 'L','STORE .F. TO;' )
- GenFldStore( 'D','STORE CTOD(" / / ") TO;' )
- else
- GenFldList( 'RELEASE;' )
- endif
- else
- genln( '* ---<No fields>.' )
- endif
- popmargin
- endfor
- genln( 'ENDCASE' )
- endif
- end GenPrivateFlds
- #>>
-
-
- <<procedure GenOutputItems>> <<*Used in APPE/EDIT prgs*>>
- <<begin>>
- DO SayLine WITH row,"PRINT: {L}abel {R}ecord <Return> "
- DO GetKey WITH choice,"LR"+Returnkey
- DO CASE
- CASE choice = "L"
- DO {fileprefix}_1LAB WITH row
- CASE choice = "R"
- DO {fileprefix}_1RPT WITH row
- ENDCASE
- <<end GenOutputItems>>
-
-
- <<#
- procedure GenPageMenu
- <<* 1 2 3 4 5
- 01234567890123456789012345678901234567890123456789012345
- PAGE: Forward ({line}) <Return>
- *>>
- string line
- integer col
- begin
- forall pages
- if forcount <= 16
- line := line + ' ' + str(pagcount) + ' '
- endif
- endfor
- #>>
- pagechoice = pageno + 1
- <<GenColor( 0,'PROMPT' )>>
- @ row, 0 CLEAR
- @ row, 0 SAY {"}PAGE: Forward ({line}) <Return>{"}
- @ row, 8 PROMPT "Forward"
- <<#
- col := 18
- forall pages
- if forcount <= 16
- genln( '@ row,',col,' PROMPT " ',pagcount,' "' )
- col := col + 3
- endif
- endfor
- col := col + 3
- #>>
- @ row,{col} SAY "<Return>"
- <<col := col + 1>>
- @ row,{col} PROMPT "Return"
- MENU TO pagechoice
- <<#
- line := ''
- forall pages
- if pagcount <= 16
- line := line + 'S'
- endif
- endfor
- #>>
- choice = SUBSTR( Returnkey+PgDn+{"}{line}{"}+Returnkey,pagechoice+1,1 )
- <<end GenPageMenu>>
-
-
- <<procedure GenPageItems>> <<*Used in APPE/EDIT prgs*>>
- <<begin>>
- <<GenPageMenu>>
- lastpage = pageno
- DO CASE
- CASE choice = PgDn
- DO Page WITH pageno,1,PageMax
- CASE choice = "S"
- pageno = pagechoice - 1
- ENDCASE
- IF pageno <> lastpage
- DO {fileprefix}_FORM
- DO SayRec
- ENDIF
- <<end GenPageItems>>
-
- <<* EOF: APPPRIV.INC *>>