home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: EXP18_3.PRG ⌐ª
- *⌐ª Function: ┤≥╙í▒¿▒φ╖╢└²╚² ⌐ª
- *⌐ª DBF & File: .restaurs.dbf (restaurs.fpt, restaurs.cdx) ⌐ª
- *⌐ª .restaurs.frx (restaurs.frt) ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- SET TALK OFF
- PRIVATE m.currarea, m.talkstat, m.compstat, m.safestat
- PRIVATE m.output, m.filename, m.choice, m.fromname, ;
- m.report, reps,m.scope, m.record, forexpr, whileexpr, ;
- m.saverec, m.while, m.for, repo, options, to , ;
- m.plain, m.summary, m.noeject
-
- IF SET("TALK") = "ON"
- SET TALK OFF
- m.talkstat = "ON"
- ELSE
- m.talkstat = "OFF"
- ENDIF
- IF SET("SAFETY") = "ON"
- SET SAFETY OFF
- m.safestat = "ON"
- ELSE
- m.safestat = "OFF"
- ENDIF
-
- m.compstat = SET("COMPATIBLE")
- SET COMPATIBLE FOXPLUS
- *IF ISCOLOR()
- * mycolor = "W+/RB,W+/BG,W+/W,W+/RB,W/RB,W+/B,GR+/RB,N+/N,W+/RB,W/RB,+"
- *ELSE
- * mycolor=",,/W+"
- *ENDIF
- IF NOT WEXIST("reports")
- DEFINE WINDOW reports ;
- FROM INT((SROW()-18)/2),INT((SCOL()-58)/2) ;
- TO INT((SROW()-18)/2)+17,INT((SCOL()-58)/2)+57 ;
- TITLE "<< ▒¿▒φ╩Σ│÷╜τ├µ >>" ;
- FLOAT ;
- NOCLOSE ;
- SHADOW;
- COLOR SCHEME 5
- * COLOR (mycolor)
- ENDIF
-
- USE restaurs
- m.choice = ""
- m.output = "Preview"
- m.filename = SPACE(20)
- m.plain = .F.
- m.summary = .F.
- m.noeject = .F.
- m.report = 1
- m.saverec = RECNO()
- forexpr = ""
- whileexpr = ""
- CLEAR
- IF WVISIBLE("reports")
- ACTIVATE WINDOW reports SAME
- ELSE
- ACTIVATE WINDOW reports NOSHOW
- ENDIF
- @ 0, 0 TO 6,34
- @ 0,35 TO 6,54
- @ 7, 0 TO 12,54
-
- * Radio ░┤┼ñ
- @ 01,3 GET m.output ;
- PICTURE "@*RVN ╙Φ╩╙;╬─╝■;┤≥╙í╗·" ;
- SIZE 1,10,1 ;
- DEFAULT 1 ;
- VALID _val181()
- * ╬─╫╓▒α╝¡╟°
- @ 03,14 EDIT m.filename ;
- PICTURE "@TK" ;
- SIZE 1,19,0 ;
- DEFAULT " " ;
- COLOR SCHEME 1
- * ╝∞▓Θ║╨ Check box
- @ 1,37 GET m.plain ;
- PICTURE "@*C ▒Ω╠Γ╓╗╘┌╩╫╥│" ;
- SIZE 1,12 ;
- DEFAULT 0
- * ╝∞▓Θ║╨ Check box
- @ 3,37 GET m.summary ;
- PICTURE "@*C ▓╗┤≥╙í├≈╧╕╨╨" ;
- SIZE 1,12 ;
- DEFAULT 0
- * ╝∞▓Θ║╨ Check box
- @ 5,37 GET m.noeject ;
- PICTURE "@*C ┤≥╙í╟░▓╗╠°╥│" ;
- SIZE 1,12 ;
- DEFAULT 0
- * Push ░┤┼ñ
- @ 7,24 GET m.gethelp ;
- PICTURE "@*VN ░∩╓·" ;
- SIZE 1,8,1 ;
- DEFAULT 1 ;
- VALID _val182()
- * ╝∞▓Θ║╨ Check box
- @ 9,3 GET m.for ;
- PICTURE "@*C \<For..." ;
- SIZE 1,10 ;
- DEFAULT 0 ;
- VALID _val183()
- * ╝∞▓Θ║╨ Check box
- @ 09,41 GET m.while ;
- PICTURE "@*C \<While..." ;
- SIZE 1,12 ;
- DEFAULT 0 ;
- VALID _val184()
- * Push ░┤┼ñ
- @ 14,10 GET m.choice ;
- PICTURE "@*HN \!╓┤╨╨;╨▐╕─;\?╚í╧√" ;
- SIZE 1,10,4 ;
- DEFAULT 1 ;
- VALID _val185()
-
- IF NOT WVISIBLE("reports")
- ACTIVATE WINDOW reports
- ENDIF
-
- READ CYCLE
-
- RELEASE WINDOW reports
-
- IF m.talkstat = "ON"
- SET TALK ON
- ENDIF
- IF m.safestat = "ON"
- SET SAFETY ON
- ENDIF
- IF m.compstat = "ON"
- SET COMPATIBLE ON
- ENDIF
- GOTO RECORD (m.saverec)
-
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ
- *⌐ª ▒Σ┴┐: m.output
- *⌐ª ╡≈╙├: VALID ▒Σ┴┐
- *⌐ª └α╨═: Radio Buttons
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ
- FUNCTION _val181 && m.output VALID
- #REGION 1
- PRIVATE m.reponame
- m.reponame = "retaurs"+".TXT"
- IF m.output = "To File"
- m.filename = ALLTRIM(PUTFILE("Output file:", reponame,"TXT"))
- SHOW GET m.filename
- ELSE
- m.filename = SPACE(20)
- SHOW GET m.filename
- ENDIF
-
-
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ
- *⌐ª ▒Σ┴┐: m.gethelp
- *⌐ª ╡≈╙├: VALID ▓╬╩²
- *⌐ª └α╨═: Push Buttons
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ
- FUNCTION _val182 && m.gethelp VALID
- #REGION 1
- HELP ■ Report Dialog
-
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ
- *⌐ª ▒Σ┴┐: m.for
- *⌐ª ╡≈╙├: VALID ▓╬╩²
- *⌐ª └α╨═: Check box
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ
- FUNCTION _val183 && m.for VALID
- #REGION 1
- IF EMPTY(forexpr)
- GETEXPR "╟δ╝ⁿ╚δ FOR ╠⌡╝■╘╦╦π╩╜:" TO forexpr TYPE 'L'
- ELSE
- GETEXPR "╟δ╝ⁿ╚δ FOR ╠⌡╝■╘╦╦π╩╜:" TO forexpr TYPE 'L' ;
- DEFAULT forexpr
- ENDIF
-
- m.for = IIF(EMPTY(forexpr), 0, 1)
- SHOW GET m.for
-
-
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ
- *⌐ª ▒Σ┴┐: m.while
- *⌐ª ╡≈╙├: VALID ▓╬╩²
- *⌐ª └α╨═: Check box
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ
- FUNCTION _val184 && m.while VALID
- #REGION 1
- IF EMPTY(whileexpr)
- GETEXPR "╟δ╝ⁿ╚δ WHILE ╠⌡╝■╘╦╦π╩╜:" TO whileexpr TYPE 'L'
- ELSE
- GETEXPR "╟δ╝ⁿ╚δ WHILE ╠⌡╝■╘╦╦π╩╜:" TO whileexpr TYPE 'L' ;
- DEFAULT whileexpr
- ENDIF
-
- m.while = IIF(EMPTY(whileexpr), 0, 1)
- SHOW GET m.while
-
-
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ
- *⌐ª ▒Σ┴┐: m.choice
- *⌐ª ╡≈╙├: VALID ▓╬╩²
- *⌐ª └α╨═: Push Buttons
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ
- FUNCTION _val185 && m.choice VALID
- #REGION 1
- repo="restaurs.frx"
- DO CASE
- CASE m.choice = "╓┤╨╨"
- options = IIF(m.plain," PLAIN", "")+;
- IIF(m.summary, " SUMMARY", "")+;
- IIF(m.noeject, " NOEJECT", "")
-
- IF NOT EMPTY(forexpr)
- forexpr = IIF(AT("FOR",forexpr)=0,"FOR ","") + forexpr
- ENDIF
- IF NOT EMPTY(whileexpr)
- whileexpr = IIF(AT("WHILE",whileexpr)=0,"WHILE ","") + ;
- whileexpr
- ENDIF
-
- DO CASE
- CASE m.output = "╬─╝■"
- to = m.filename
- REPORT FORM &repo &options &forexpr &whileexpr ;
- TO FILE &to ENVIRONMENT NOCONSOLE
- CLEAR READ
- CASE m.output = "╙Φ╩╙"
- REPORT FORM &repo &options &forexpr &whileexpr ;
- PREVIEW ENVIRONMENT
- CASE m.output = "┤≥╙í╗·"
- SET ESCAPE OFF
- IF PRINTSTATUS()
- REPORT FORM &repo &options &forexpr &whileexpr ;
- TO PRINTER ENVIRONMENT NOCONSOLE
- CLEAR READ
- ELSE
- WAIT WINDOW " ┤≥╙í╗·╬┤╫╝▒╕║├! "
- RETURN TO MASTER
- ENDIF
- SET ESCAPE ON
- ENDCASE
-
- CASE m.choice = "╨▐╕─"
- MODIFY REPORT &repo
- CASE m.choice = "╚í╧√"
- CLEAR READ
- ENDCASE
- IF AT("FOR",forexpr)<>0
- forexpr = SUBSTR(forexpr, AT("FOR",forexpr)+4)
- ENDIF
- IF AT("WHILE",whileexpr)<>0
- whileexpr = SUBSTR(whileexpr, AT("WHILE",whileexpr)+6)
- ENDIF