ERR_2.PRG
资源名称:jq_report.ARJ [点击查看]
上传用户:xue7720
上传日期:2013-01-31
资源大小:1240k
文件大小:3k
源码类别:
行业应用
开发平台:
VFP
- *┌──────────────────────────────────┐
- *│ Program: ERR_2.PRG │
- *│ Function: 错误处理子程序二 │
- *│ Usage: ON ERROR DO ERR_2 WITH PROGRAM(), LINENO),; │
- *│ ERROR(), MESSAGE(1), MESSAGE() │
- *└──────────────────────────────────┘
- PARAMETERS mPROGRAM,mLINE, mERROR,mMESS,mMESS1
- SET CURSOR OFF
- CLEAR
- DEFINE WINDOW WIN_E2 FROM 10,5 TO 18,75 SHADOW COLOR SCHEME 7
- ACTIVATE WINDOW WIN_E2
- @0,2 SAY " 发生错误的程序名称: "+mPROGRAM
- @1,2 SAY " 发生错误的程序行号: "+LTRIM(STR(MLINE))
- @2,2 SAY " 错误代码: "+LTRIM(STR(mERROR))
- @3,2 SAY " 错误信息: "+mMESS
- @4,2 SAY " 出错程序内容: "+mMESS1
- *@5,2 say " 如有不明,请向黄朝生查询. Tel: 0771-5627468 "
- @6,10 GET act PICTURE "@*HN 继续;重试;返回主程序;退到DOS";
- SIZE 1,10,1 DEFAULT 0 VALID actvalid()
- READ CYCLE
- FUNCTION actvalid
- DO CASE
- CASE act = 1
- DEACTIVATE WINDOW WIN_E2
- clos data
- set colo to w+/1
- @ 0,0,23,79 box '北北北北' colo scheme 3
- set colo to w+/n
- @ 1,1,22,78 box '鞍鞍鞍鞍鞍' colo scheme 1
- @ 23,28 say "当前数据的月份:"+str(Ryear,4,0)+"年"+str(Ryf,2,0)+"月" colo 1+/3
- @ 24,0 say ' JQ001汇总报表系统(Ver1.0) 黄朝生研制 版权所有 南宁市建政路51号 邮编:530023 ' colo 4/w
- on key label Escape do Rquit
- set clock to 23,69
- RETURN
- CASE ACT = 2
- DEACTIVATE WINDOW WIN_E2
- ***********************
- clos data
- set colo to w+/1
- @ 0,0,23,79 box '北北北北' colo scheme 3
- set colo to w+/n
- @ 1,1,22,78 box '鞍鞍鞍鞍鞍' colo scheme 1
- @ 23,28 say "当前数据的月份:"+str(Ryear,4,0)+"年"+str(Ryf,2,0)+"月" colo 1+/3
- @ 24,0 say ' JQ001汇总报表系统(Ver1.0) 黄朝生研制 版权所有 南宁市建政路51号 邮编:530023 ' colo 4/w
- on key label Escape do Rquit
- set clock to 23,69
- RETRY
- CASE ACT = 3
- DEACTIVATE WINDOW WIN_E2
- ***********************
- clos data
- set colo to w+/1
- @ 0,0,23,79 box '北北北北' colo scheme 3
- set colo to w+/n
- @ 1,1,22,78 box '鞍鞍鞍鞍鞍' colo scheme 1
- @ 23,28 say "当前数据的月份:"+str(Ryear,4,0)+"年"+str(Ryf,2,0)+"月" colo 1+/3
- @ 24,0 say ' JQ001汇总报表系统(Ver1.0) 黄朝生研制 版权所有 南宁市建政路51号 邮编:530023 ' colo 4/w
- on key label Escape do Rquit
- set clock to 23,69
- RETURN TO MASTER
- CASE act = 4
- QUIT
- ENDCASE
- clos data
- set colo to w+/1
- @ 0,0,23,79 box '北北北北' colo scheme 3
- set colo to w+/n
- @ 1,1,22,78 box '鞍鞍鞍鞍鞍' colo scheme 1
- @ 23,28 say "当前数据的月份:"+str(Ryear,4,0)+"年"+str(Ryf,2,0)+"月" colo 1+/3
- @ 24,0 say ' JQ001汇总报表系统(Ver1.0) 黄朝生研制 版权所有 南宁市建政路51号 邮编:530023 ' colo 4/w
- on key label Escape do Rquit
- set clock to 23,69
- RETURN