home *** CD-ROM | disk | FTP | other *** search
- * This is the modified program for INV.FCG. The query statements have been
- * added manually in this program. The comments describe the changes that have
- * been added. All changes are in lower case. This file gets included in
- * INV.PRG each time INV.PRG is generated.
- *
- * NOTE: This form only uses the COURIER 10 and 12 point fonts to make it
- * portable to several different LaserJet printers.
- *
- SET TALK OFF
- SET CONSOLE OFF
- * The following line makes all procedures in this file accesible to the main
- * program. This line is not necessary for some systems (For example FoxPro).
- SET PROCEDURE TO INV
- DO FCGINIT
- SET PRINT ON
- DO FCGSTART WITH 1, 0, 2, 4, 300
-
- select 1
- use custmers
- * The next 2 lines create index file specifically for your system (dBASE, Fox,
- * etc). We did not create the index file to make this program portable.
- set safety off
- index on cust_num to cust_num
- select 2
- use orders
- set relation to cust_num into custmers
-
- DO WHILE .not. eof()
- DO FCGFIXOBJ
- * Code for printing table 0.
- FCGTBROW = 0
- mTOTAL = 0
- mCUSTNUM = cust_num
- DO WHILE cust_num = mCUSTNUM
- DO FCGTBRW0 WITH FCGTBROW
- * Do all variable assigmnent, file pointer movement, etc, here.
- FCGTBROW = FCGTBROW + 1
- mTOTAL = mTOTAL + cost
- skip
- ENDDO
- * Make sure all totals fields are up to date at this point
- mAPPREC = "We apraciate our customers!"
- if (mTOTAL > 500)
- mAPPREC = "You are one of our very special customers!!"
- endif
- if (mTOTAL > 1000)
- mAPPREC = "You are one of our best customer!!!"
- endif
- DO FCGTBEN0
- * back up to customer that we were working with so far
- skip -1
- DO FCGVAROBJ
- skip
- * Do all variable re-assignments, file pointer movements, etc, here.
- ?? chr(12)
- ENDDO
- DO FCGEND
- SET PRINT OFF
- SET CONSOLE ON
- RETURN
-