home *** CD-ROM | disk | FTP | other *** search
- *******************
-
- PROCEDURE Makereport
-
- PARAMETERS _whichsst, _thruwhat, _macarrs, _sput
-
- _withfile = !(PCOUNT() = 0)
-
- IF PCOUNT() != 4
- _sput = .F.
- ENDIF
-
- IF PCOUNT() = 1
- _thruwhat = 1
- IF TYPE("_whichsst") = "A"
- PUBLIC macplus[LEN(_whichsst)+8]
- ACOPY(_whichsst, macplus, 1, LEN(_whichsst), 9)
- _withfile = .F.
- ELSE
- PUBLIC macplus[8]
- ENDIF
- Assignmac()
- ELSEIF PCOUNT() = 2 .OR. PCOUNT() = 0
- PUBLIC macplus[8]
- Assignmac()
- ELSEIF PCOUNT() = 3
- IF TYPE("_macarrs") != "A"
- PUBLIC macplus[8]
- ELSE
- PUBLIC macplus[LEN(_macarrs)+8]
- ACOPY(_macarrs, macplus, 1, LEN(_macarrs), 9)
- ENDIF
- Assignmac()
- ENDIF
-
- IF _withfile
- IF !FILE(_whichsst + ".SST")
- RETURN
- ENDIF
- ENDIF
-
- ret_area = LTRIM(TRIM(STR(SELECT())))
-
- IF TYPE("allscreens") != "U"
- Pushscreen()
- Savearray("Array1", allscreens)
- Savearray("Array2", allcolor)
- Savearray("Array3", allwindows)
- ELSE
- SAVE SCREEN
- ENDIF
- @ 0,0 CLEAR
-
- SAVE ALL LIKE * TO Holding.sys
-
- Init_rpt(_whichsst, _thruwhat, _sput)
- Cleanrptup()
- IF TYPE("allscreens") != "U"
- Popscreen()
- ELSE
- RESTORE SCREEN
- ENDIF
-
- * End of File